You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Yuto-24 Thank you for reporting this issue to our team! I'm leaving some notes here for other contributors to help with this issue.
Here is the definition of the Azure provider:
classAzureChatOpenAIProvider(BaseProvider, AzureChatOpenAI):
id="azure-chat-openai"name="Azure OpenAI"models= ["*"]
model_id_key="azure_deployment"model_id_label="Deployment name"pypi_package_deps= ["langchain_openai"]
# Confusingly, langchain uses both OPENAI_API_KEY and AZURE_OPENAI_API_KEY for azure# https://github.com/langchain-ai/langchain/blob/f2579096993ae460516a0aae1d3e09f3eb5c1772/libs/partners/openai/langchain_openai/llms/azure.py#L85auth_strategy=EnvAuthStrategy(
name="AZURE_OPENAI_API_KEY", keyword_param="openai_api_key"
)
registry=Truefields= [
TextField(key="azure_endpoint", label="Base API URL (required)", format="text"),
TextField(key="api_version", label="API version (required)", format="text"),
]
The Azure endpoint is being passed via the azure_endpoint keyword parameter. However, this may have been renamed, which may be causing the issue you are describing.
We should find the definition of AzureChatOpenAI, see which keyword parameter it expects for AZURE_OPENAI_ENDPOINT, and then update the key defined in the field.
Description
Reproduce
AZURE_OPENAI_ENDPOINT
, then it is resolved.Expected behavior
Context
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: