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
I am trying to connect to azure openai using langchain and all my connection variables match the values displayed in the portal.
AzureOpenAI = AzureOpenAI(deployment_name=self.deployment_name, temperature=self.temperature, max_tokens=self.max_tokens)
Please check you have a deployment name gpt-35-turbo in your Azure OpenAI resource
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.