assafelovic / gpt-researcher

LLM based autonomous agent that conducts local and web research on any topic and generates a comprehensive report with citations.
https://gptr.dev
Apache License 2.0
14.93k stars 1.99k forks source link

Error Code 404 with Azure OpenAI #980

Closed franckess closed 6 days ago

franckess commented 1 week ago

Hey team,

Great work on building this project.

I am currently facing an issue while gpt-researcher with Azure Open AI in hybrid mode.

Here is my current .env file

AZURE_OPENAI_API_KEY=XXXXXXXX
AZURE_OPENAI_ENDPOINT=https://sydney-openai.openai.azure.com/openai/
AZURE_OPENAI_API_VERSION=2024-08-01-preview

note that the deployment name must be the same as the model name
FAST_LLM=azure_openai:gpt-4o
SMART_LLM=azure_openai:gpt-4o
STRATEGIC_LLM=azure_openai:gpt-4o

EMBEDDING=azure_openai:text-embedding-3-large

And this is the error that I am getting:

openai.NotFoundError: Error code: 404 - {'error': {'code': 'DeploymentNotFound', 'message': 'The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.'}}
INFO:     connection closed

FYI, the API has been deployed and tested in Azure OpenAI Studio! Any tips on how to solve it?

franckess commented 6 days ago

azure_openai:text-embedding-3-large was not deployed