You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a very descriptive title to this question.
I searched the LangChain documentation with the integrated search.
I used the GitHub search to find a similar question and didn't find it.
Commit to Help
I commit to help with one of those options 👆
Example Code
fromlangchain_openaiimportAzureOpenAIEmbeddingsembeddings=AzureOpenAIEmbeddings(
model="text-embedding-3-large")
samplecodefromhttps://python.langchain.com/docs/integrations/text_embedding/azureopenai/BasedontheerrorIgotalsoItried:
embeddings=AzureOpenAIEmbeddings(
azure_endpoint="my base URL here")
Description
1 validation error for AzureOpenAIEmbeddings root
As of openai>=1.0.0, Azure endpoints should be specified via the azure_endpoint param not openai_api_base (or alias base_url). (type=value_error)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Checked other resources
Commit to Help
Example Code
Description
1 validation error for AzureOpenAIEmbeddings
root
As of openai>=1.0.0, Azure endpoints should be specified via the
azure_endpoint
param notopenai_api_base
(or aliasbase_url
). (type=value_error)System Info
pip install -qU langchain-openai
Beta Was this translation helpful? Give feedback.
All reactions