openai[patch]: correct grammar in exception message in embeddings/base.py (#22629)

Correct the grammar error for missing transformers package ValueError
pull/22630/head
seyf97 4 months ago committed by GitHub
parent 80560419b0
commit 2904c50cd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save