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

This commit is contained in:
Bagatur
2024-09-03 23:35:35 -07:00
committed by GitHub
parent 78c454c130
commit d072d592a1

View File

@@ -195,7 +195,7 @@ class AzureOpenAIEmbeddings(OpenAIEmbeddings):
"default_headers": self.default_headers,
"default_query": self.default_query,
}
if not (self.client or None):
if not self.client:
sync_specific: dict = {"http_client": self.http_client}
self.client = openai.AzureOpenAI(
**client_params, # type: ignore[arg-type]