mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-28 15:00:23 +00:00
Update libs/partners/openai/langchain_openai/embeddings/base.py
This commit is contained in:
@@ -322,7 +322,7 @@ class OpenAIEmbeddings(BaseModel, Embeddings):
|
|||||||
"'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
|
||||||
|
Reference in New Issue
Block a user