mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-27 14:26:48 +00:00
Update libs/partners/openai/langchain_openai/embeddings/azure.py
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user