'DeploymentNotFound', The API deployment for this resource does not exist. #19996
Replies: 2 comments 1 reply
-
Hey there, @HamedFathi! 😄 Long time no see in the issue tracker. Hope you've been coding up some cool stuff! Let's dive into your LangChain adventure. Based on the error message and the context provided, it seems like the issue might be related to how the Azure endpoint and deployment name are being handled in the updated versions of the OpenAI and LangChain libraries. In the updated versions, there are stricter requirements or different expectations for how the Azure endpoint and deployment name are specified. This could be leading to a mismatch between the constructed endpoint URL and the actual deployment location on Azure, causing the Here are a few steps you can take to resolve this issue:
You can refer to the AzureChatOpenAI class in the LangChain library for more details on how these parameters are handled. Also, it's worth noting that there was a discussion and an issue in the LangChain repository where users faced similar problems. The suggested solutions in these threads might also help you resolve the issue. If you're still facing the issue after trying these steps, please provide more details about your Azure OpenAI setup and the exact steps you're taking when the error occurs. This will help in identifying the root cause of the problem and finding a suitable solution. Sources
|
Beta Was this translation helpful? Give feedback.
-
Any new? |
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
I am using openai==0.28.1 & langchain==0.0.332 and the following code works well, no problem. (Model and deployment names are the same.)
but I tried to update the codebase to the latest version openai==1.16.1 & langchain==0.1.14 and now without any other change in Azure or codebase, I got an error.
As we are using Azure OpenAI with langchain, can someone help me what changed and why my code failed just by updating the library?
System Info
Windows
Python 3.10
Beta Was this translation helpful? Give feedback.
All reactions