Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Nov 15, 2024
1 parent 95773d3 commit efa06f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/danswer/natural_language_processing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def _check_tokenizer_cache(
def _try_initialize_tokenizer(
model_name: str, model_provider: EmbeddingProvider | None
) -> BaseTokenizer | None:
tokenizer: BaseTokenizer | None = None

if model_provider is not None:
# Try using TiktokenTokenizer first if model_provider exists
try:
Expand Down

0 comments on commit efa06f8

Please sign in to comment.