The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Fix Issue #6650: Enable Azure Active Directory token-based auth access for AzureChatOpenAI (#8622)
Vasileios Mansolase68a1d73d0c8
diff --git a/libs/langchain/langchain/chat_models/azure_openai.py b/libs/langchain/langchain/chat_models/azure_openai.pyindex cf841d68e3..69e34646e3 100644--- a/libs/langchain/langchain/chat_models/azure_openai.py+++ b/libs/langchain/langchain/chat_models/azure_openai.py@@ -45,7 +45,7 @@ class AzureChatOpenAI(ChatOpenAI):"""deployment_name: str = ""- openai_api_type: str = "azure"+ openai_api_type: str = ""openai_api_base: str = ""openai_api_version: str = ""openai_api_key: str = ""@@ -71,9 +71,7 @@ class AzureChatOpenAI(ChatOpenAI):"OPENAI_API_VERSION",)values["openai_api_type"] = get_from_dict_or_env(- values,- "openai_api_type",- "OPENAI_API_TYPE",+ values, "openai_api_type", "OPENAI_API_TYPE", default="azure")values["openai_organization"] = get_from_dict_or_env(values,