Replies: 2 comments 4 replies
-
🤖 Hello @Misto1997! I'm here to assist you with your issue while we wait for a human maintainer. Just so you know, I'm a bot designed to help solve bugs, answer questions, and guide contributors. I'm here to make your journey with LangChain smoother. Let's dive into the issue you're facing! Based on the information you've provided and the context from the LangChain repository, it seems like the connection timeout issue you're experiencing with the LangChain does not make calls to other OpenAI's APIs such as "host='openaipublic.blob.core.windows.net', port=443". The AzureOpenAIEmbeddings class in LangChain uses the Azure endpoint provided by the user or the environment variable As for the Regarding the connection timeout issue, there was a similar issue reported in the LangChain repository titled OpenAIEmbeddings fails to connect. The suggested solution was to check the I hope this information helps. If you have any other questions or need further clarification, feel free to ask. Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
I'm not using any proxy and also mentioned thread: #12714 is not relevant as my error is not related to the proxy. Note: embed_query() method is working fine for text length < embedding_ctx_length: int = 8191.
|
Beta Was this translation helpful? Give feedback.
-
I have used Langchain's embed_query() and embed_document() methods and facing issue when these 2 methods calls _get_len_safe_embeddings() method.
Exception in embedding creations HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f68dc6ca8b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Im using Azure's OpenAI Deployment and I have whitelisted our Azure's endpoint hence rest API's are working fine.
My Issue query is, does Langchain calls some other OpenAI's API's like mentioned in error "host='openaipublic.blob.core.windows.net', port=443" which i should get whitelisted?
langchain version = 0.0.199
openai version = 0.28.1
Beta Was this translation helpful? Give feedback.
All reactions