diff --git a/libs/partners/openai/langchain_openai/llms/azure.py b/libs/partners/openai/langchain_openai/llms/azure.py index 973fd9c271e..f9491d789b4 100644 --- a/libs/partners/openai/langchain_openai/llms/azure.py +++ b/libs/partners/openai/langchain_openai/llms/azure.py @@ -150,7 +150,7 @@ class AzureOpenAI(BaseOpenAI): "default_headers": self.default_headers, "default_query": self.default_query, } - if not (self.client or None): + if not self.client: sync_specific = {"http_client": self.http_client} self.client = openai.AzureOpenAI( **client_params,