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

This commit is contained in:
Bagatur
2024-09-03 23:35:26 -07:00
committed by GitHub
parent 5e31cd91a7
commit 5199555c0d

View File

@@ -476,7 +476,7 @@ class BaseChatOpenAI(BaseChatModel):
"'http_client'/'http_async_client' is already specified. Received:\n" "'http_client'/'http_async_client' is already specified. Received:\n"
f"{openai_proxy=}\n{http_client=}\n{http_async_client=}" f"{openai_proxy=}\n{http_client=}\n{http_async_client=}"
) )
if not (self.client or None): if not self.client:
if self.openai_proxy and not self.http_client: if self.openai_proxy and not self.http_client:
try: try:
import httpx import httpx