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

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

View File

@@ -201,7 +201,7 @@ class AzureOpenAIEmbeddings(OpenAIEmbeddings):
**client_params, # type: ignore[arg-type]
**sync_specific,
).embeddings
if not (self.async_client or None):
if not self.async_client:
async_specific: dict = {"http_client": self.http_async_client}
self.async_client = openai.AsyncAzureOpenAI(
**client_params, # type: ignore[arg-type]