diff --git a/libs/partners/openai/langchain_openai/chat_models/base.py b/libs/partners/openai/langchain_openai/chat_models/base.py index f753beb40dd..daaf44d5d08 100644 --- a/libs/partners/openai/langchain_openai/chat_models/base.py +++ b/libs/partners/openai/langchain_openai/chat_models/base.py @@ -476,7 +476,7 @@ class BaseChatOpenAI(BaseChatModel): "'http_client'/'http_async_client' is already specified. Received:\n" f"{openai_proxy=}\n{http_client=}\n{http_async_client=}" ) - if not (self.client or None): + if not self.client: if self.openai_proxy and not self.http_client: try: import httpx