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
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.