diff --git a/libs/partners/openai/langchain_openai/embeddings/base.py b/libs/partners/openai/langchain_openai/embeddings/base.py index 1cc19150cb9..02f72542c01 100644 --- a/libs/partners/openai/langchain_openai/embeddings/base.py +++ b/libs/partners/openai/langchain_openai/embeddings/base.py @@ -334,7 +334,7 @@ class OpenAIEmbeddings(BaseModel, Embeddings): self.http_client = httpx.Client(proxy=self.openai_proxy) sync_specific = {"http_client": self.http_client} self.client = openai.OpenAI(**client_params, **sync_specific).embeddings # type: ignore[arg-type] - if not (self.async_client or None): + if not self.async_client: if self.openai_proxy and not self.http_async_client: try: import httpx