mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-27 06:18:05 +00:00
Update libs/partners/openai/langchain_openai/llms/base.py
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user