Replies: 2 comments
-
I had the same issue, it was resolved when i installed the latest version of langchain_openai package |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Arshad272 I had the same issue, I was able to resolve it by also pinning my pydantic package versions to the same ones as in my local environment. Here is what I have pinned:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I'm reaching out regarding a critical issue with our application that integrates with Azure OpenAI through the Langchain library. Our application is deployed on Azure App Service and was functioning properly until March 31st, when we began encountering the following error:
Error:
AzureOpenAI
is not fully defined; you should defineBaseCache
, then callAzureOpenAI.model_rebuild()
In our attempt to resolve this issue, we implemented the recommended fix by adding the following code:
Despite this implementation, we continue to experience the same error. Importantly, our code executes without any issues in our local development environment - this problem is specific to the Azure App Service deployment.
As a workaround, we've switched from using langchain_openai to directly using the OpenAI SDK with: from openai import AzureOpenAI.
Could you please investigate this issue and provide insight into:
What might be causing this error specifically in the Azure App Service environment?
Why the recommended fix for model rebuilding isn't resolving the problem?
Whether there are any known compatibility issues between these library versions and Azure App Service?
Your assistance in resolving this matter is greatly appreciated.
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
Beta Was this translation helpful? Give feedback.
All reactions