Replies: 2 comments 4 replies
-
Hey there, @nithisb! I'm here to assist you with any bugs, questions, or contributions while we wait for a human maintainer. Let's tackle this issue together! The Ensure that:
Here's an example of how to set these configurations: import os
from langchain_openai import AzureChatOpenAI
api_version = os.getenv("AZURE_OPENAI_API_VERSION")
deployment_name = os.getenv("AZURE_OPENAI_CHAT_DEPLOYMENT_NAME")
azure_endpoint = os.getenv("AZURE_OPENAI_ENDPOINT")
llm = AzureChatOpenAI(
openai_api_version=api_version,
azure_deployment=deployment_name,
azure_endpoint=azure_endpoint,
openai_api_key=os.getenv("AZURE_OPENAI_API_KEY")
) Make sure that the environment variables By ensuring these configurations are correct, you should be able to resolve the |
Beta Was this translation helpful? Give feedback.
-
My friend helped resolve the errors; it was a configuration issue. Everything is working properly now. Thank you for your response! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
openai.NotFoundError: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}
The code was previously working correctly, but now it consistently returns this error.
System Info
langchain-core - Version: 0.2.27
langchain-openai - Version: 0.1.8
Beta Was this translation helpful? Give feedback.
All reactions