From d0cc9b022a420c12ba86a74c9d0d84d29cf56e52 Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Tue, 3 Sep 2024 23:30:56 -0700 Subject: [PATCH] Update libs/partners/fireworks/langchain_fireworks/chat_models.py --- libs/partners/fireworks/langchain_fireworks/chat_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/partners/fireworks/langchain_fireworks/chat_models.py b/libs/partners/fireworks/langchain_fireworks/chat_models.py index 5287157253008..da85524f7d372 100644 --- a/libs/partners/fireworks/langchain_fireworks/chat_models.py +++ b/libs/partners/fireworks/langchain_fireworks/chat_models.py @@ -391,7 +391,7 @@ def validate_environment(self) -> Self: if not self.client: self.client = Fireworks(**client_params).chat.completions - if not (self.async_client or None): + if not self.async_client: self.async_client = AsyncFireworks(**client_params).chat.completions if self.max_retries: self.client._max_retries = self.max_retries