Update libs/partners/openai/langchain_openai/chat_models/azure.py

This commit is contained in:
Bagatur
2024-09-03 23:35:15 -07:00
committed by GitHub
parent b78764599b
commit 49a1f5dd47

View File

@@ -621,7 +621,7 @@ class AzureChatOpenAI(BaseChatOpenAI):
"default_headers": self.default_headers,
"default_query": self.default_query,
}
if not (self.client or None):
if not self.client:
sync_specific = {"http_client": self.http_client}
self.root_client = openai.AzureOpenAI(**client_params, **sync_specific) # type: ignore[arg-type]
self.client = self.root_client.chat.completions