mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-04 04:07:54 +00:00
openai[patch]: correct grammar in exception message in embeddings/base.py (#22629)
Correct the grammar error for missing transformers package ValueError
This commit is contained in:
parent
80560419b0
commit
2904c50cd5
@ -341,7 +341,7 @@ class OpenAIEmbeddings(BaseModel, Embeddings):
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Could not import transformers python package. "
|
"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`. "
|
"`tiktoken`. Please install it with `pip install transformers`. "
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user