Update libs/partners/openai/langchain_openai/llms/base.py

This commit is contained in:
Bagatur
2024-09-03 23:36:14 -07:00
committed by GitHub
parent 54d6808c1e
commit c1ff61669d

View File

@@ -187,7 +187,7 @@ class BaseOpenAI(BaseLLM):
"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.OpenAI(**client_params, **sync_specific).completions # type: ignore[arg-type]
if not (self.async_client or None):