mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-27 22:37:46 +00:00
Update libs/partners/openai/langchain_openai/llms/base.py
This commit is contained in:
@@ -190,7 +190,7 @@ class BaseOpenAI(BaseLLM):
|
|||||||
if not self.client:
|
if not self.client:
|
||||||
sync_specific = {"http_client": self.http_client}
|
sync_specific = {"http_client": self.http_client}
|
||||||
self.client = openai.OpenAI(**client_params, **sync_specific).completions # type: ignore[arg-type]
|
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}
|
async_specific = {"http_client": self.http_async_client}
|
||||||
self.async_client = openai.AsyncOpenAI(
|
self.async_client = openai.AsyncOpenAI(
|
||||||
**client_params,
|
**client_params,
|
||||||
|
Reference in New Issue
Block a user