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
opengpts-backend | File "/backend/app/tools.py", line 27, in <module> opengpts-backend | from app.upload import vstore opengpts-backend | File "/backend/app/upload.py", line 138, in <module> opengpts-backend | vstore = _determine_azure_or_openai_embeddings() opengpts-backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ opengpts-backend | File "/backend/app/upload.py", line 66, in _determine_azure_or_openai_embeddings opengpts-backend | embedding_function=AzureOpenAIEmbeddings(), opengpts-backend | ^^^^^^^^^^^^^^^^^^^^^^^ opengpts-backend | File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__ opengpts-backend | pydantic.error_wrappers.ValidationError: 1 validation error for AzureOpenAIEmbeddings opengpts-backend | __root__ opengpts-backend | Must provide one of the 'base_url' or 'azure_endpoint' arguments, or the 'AZURE_OPENAI_ENDPOINT'environment variable (type=value_error)
Not sure what I am doing wrong.
The text was updated successfully, but these errors were encountered:
I am using Azure Open AI Chat deployment , and my .env looks like this
AZURE_OPENAI_DEPLOYMENT_NAME=chat
AZURE_OPENAI_API_KEY="XXXXXXXXXXXX"
AZURE_OPENAI_API_BASE="https://XXXXXXXXX.openai.azure.com/"
AZURE_OPENAI_API_VERSION="2024-03-01-preview"
POSTGRES_PORT=5432
POSTGRES_DB=postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
When doing a docker compose , I error out at
opengpts-backend | File "/backend/app/tools.py", line 27, in <module>
opengpts-backend | from app.upload import vstore
opengpts-backend | File "/backend/app/upload.py", line 138, in <module>
opengpts-backend | vstore = _determine_azure_or_openai_embeddings()
opengpts-backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
opengpts-backend | File "/backend/app/upload.py", line 66, in _determine_azure_or_openai_embeddings
opengpts-backend | embedding_function=AzureOpenAIEmbeddings(),
opengpts-backend | ^^^^^^^^^^^^^^^^^^^^^^^
opengpts-backend | File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
opengpts-backend | pydantic.error_wrappers.ValidationError: 1 validation error for AzureOpenAIEmbeddings
opengpts-backend | __root__
opengpts-backend | Must provide one of the 'base_url' or 'azure_endpoint' arguments, or the 'AZURE_OPENAI_ENDPOINT'
environment variable (type=value_error)
Not sure what I am doing wrong.
The text was updated successfully, but these errors were encountered: