From 4c7afb0d6c68b22963055d5fc85d09ec84b758cd Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Tue, 3 Sep 2024 23:36:19 -0700 Subject: [PATCH] Update libs/partners/openai/langchain_openai/llms/base.py --- libs/partners/openai/langchain_openai/llms/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/partners/openai/langchain_openai/llms/base.py b/libs/partners/openai/langchain_openai/llms/base.py index b070de0b28b1f..0c773b347a60b 100644 --- a/libs/partners/openai/langchain_openai/llms/base.py +++ b/libs/partners/openai/langchain_openai/llms/base.py @@ -190,7 +190,7 @@ def validate_environment(self) -> Self: if not self.client: sync_specific = {"http_client": self.http_client} self.client = openai.OpenAI(**client_params, **sync_specific).completions # type: ignore[arg-type] - if not (self.async_client or None): + if not self.async_client: async_specific = {"http_client": self.http_async_client} self.async_client = openai.AsyncOpenAI( **client_params,