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

This commit is contained in:
Bagatur
2024-09-03 23:36:02 -07:00
committed by GitHub
parent 76572f963b
commit 78468de2e5

View File

@@ -150,7 +150,7 @@ class AzureOpenAI(BaseOpenAI):
"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.client = openai.AzureOpenAI( self.client = openai.AzureOpenAI(
**client_params, **client_params,