mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-28 15:00:23 +00:00
Update libs/partners/openai/langchain_openai/chat_models/base.py
This commit is contained in:
@@ -489,7 +489,7 @@ class BaseChatOpenAI(BaseChatModel):
|
|||||||
sync_specific = {"http_client": self.http_client}
|
sync_specific = {"http_client": self.http_client}
|
||||||
self.root_client = openai.OpenAI(**client_params, **sync_specific) # type: ignore[arg-type]
|
self.root_client = openai.OpenAI(**client_params, **sync_specific) # type: ignore[arg-type]
|
||||||
self.client = self.root_client.chat.completions
|
self.client = self.root_client.chat.completions
|
||||||
if not (self.async_client or None):
|
if not self.async_client:
|
||||||
if self.openai_proxy and not self.http_async_client:
|
if self.openai_proxy and not self.http_async_client:
|
||||||
try:
|
try:
|
||||||
import httpx
|
import httpx
|
||||||
|
Reference in New Issue
Block a user