mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-27 14:26:48 +00:00
Update libs/partners/openai/langchain_openai/chat_models/azure.py
This commit is contained in:
@@ -621,7 +621,7 @@ class AzureChatOpenAI(BaseChatOpenAI):
|
|||||||
"default_headers": self.default_headers,
|
"default_headers": self.default_headers,
|
||||||
"default_query": self.default_query,
|
"default_query": self.default_query,
|
||||||
}
|
}
|
||||||
if not (self.client or None):
|
if not self.client:
|
||||||
sync_specific = {"http_client": self.http_client}
|
sync_specific = {"http_client": self.http_client}
|
||||||
self.root_client = openai.AzureOpenAI(**client_params, **sync_specific) # type: ignore[arg-type]
|
self.root_client = openai.AzureOpenAI(**client_params, **sync_specific) # type: ignore[arg-type]
|
||||||
self.client = self.root_client.chat.completions
|
self.client = self.root_client.chat.completions
|
||||||
|
Reference in New Issue
Block a user