mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-27 06:18:05 +00:00
Update libs/partners/openai/langchain_openai/embeddings/azure.py
This commit is contained in:
@@ -201,7 +201,7 @@ class AzureOpenAIEmbeddings(OpenAIEmbeddings):
|
|||||||
**client_params, # type: ignore[arg-type]
|
**client_params, # type: ignore[arg-type]
|
||||||
**sync_specific,
|
**sync_specific,
|
||||||
).embeddings
|
).embeddings
|
||||||
if not (self.async_client or None):
|
if not self.async_client:
|
||||||
async_specific: dict = {"http_client": self.http_async_client}
|
async_specific: dict = {"http_client": self.http_async_client}
|
||||||
self.async_client = openai.AsyncAzureOpenAI(
|
self.async_client = openai.AsyncAzureOpenAI(
|
||||||
**client_params, # type: ignore[arg-type]
|
**client_params, # type: ignore[arg-type]
|
||||||
|
Reference in New Issue
Block a user