A community member has associated this post with a similar question:
failing connection with azure openai with langchain

Only moderators can edit this content.

Error when trying to connect to Azure openai through Langchain

Riya Chaudhary 20 Reputation points
2024-04-17T13:43:08.4166667+00:00

Trying to connect to openai through langchain but running into error. All the connection variable match values on portal.

AzureOpenAI(deployment_name=self.deployment_name, temperature=self.temperature, max_tokens=self.max_tokens)

self.handle_error_response( openai.error.AuthenticationError: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
711 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,169 questions
{count} votes