When running my program,
pydantic.v1.error_wrappers.ValidationError: 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)
This error message shows up and I am unable to run.
openai version: 1.30.1
Referring to the below code, I am already using AZURE_OPENAI_ENDPOINT
and not openai_api_base
.
from langchain_openai import AzureOpenAIEmbeddings, OpenAIEmbeddings embeddings = AzureOpenAIEmbeddings( azure_endpoint=os.environ["AZURE_OPENAI_ENDPOINT"], ... ]
Avril Guok is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.