Skip to content

Commit

Permalink
openai[patch]: correct grammar in exception message in embeddings/bas…
Browse files Browse the repository at this point in the history
…e.py (langchain-ai#22629)

Correct the grammar error for missing transformers package ValueError
  • Loading branch information
seyf97 authored and JonZeolla committed Jun 11, 2024
1 parent 689ba64 commit 6bc0ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/partners/openai/langchain_openai/embeddings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def _tokenize(
except ImportError:
raise ValueError(
"Could not import transformers python package. "
"This is needed in order to for OpenAIEmbeddings without "
"This is needed for OpenAIEmbeddings to work without "
"`tiktoken`. Please install it with `pip install transformers`. "
)

Expand Down

0 comments on commit 6bc0ed7

Please sign in to comment.