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:
seyf97 2024-06-06 21:55:04 +03:00 committed by GitHub
parent 80560419b0
commit 2904c50cd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -341,7 +341,7 @@ class OpenAIEmbeddings(BaseModel, Embeddings):
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`. "
)