AzureChatOpenAI imported from @langchain/openai results in MODEL_NOT_FOUND error #8082
Open
5 tasks done
Labels
auto:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
The following code results in MODULE_NOT_FOUND error:
Error Message and Stack Trace (if applicable)
Description
It constructs the Azure Open AI url incorrectly:
The URL should be
https://myazureresource.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2024-08-01-preview
If I import the same class from @langchain/azure-openai, then it works with exact same parameters but VS code shows that the class is deprecated.
System Info
The text was updated successfully, but these errors were encountered: