You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The upgrade led to a deprecation warning for AzureChatOpenAI. The suggestion was to use langchain_openai.AzureChatOpenAI, but trying to import it gave a ModuleNotFoundError. After some trial and error, I found that installing langchain_openai separately fixed the issue. Now, I can import AzureOpenAI, AzureOpenAIEmbeddings, and AzureChatOpenAI.
Idea or request for content:
Despite my research, I couldn't find documentation mentioning the need to install langchain_openai separately, which wasted a lot of time and created unnecessary confusion. Sharing this issue here, hope it helps others facing a similar problem. Please add this to the documentation
The text was updated successfully, but these errors were encountered:
Thank you for sharing your experience with the deprecation of AzureChatOpenAI and the need to install langchain_openai separately. Your input is valuable for improving the LangChain framework. It's great to see your proactive approach in finding a solution and your willingness to help others by suggesting an addition to the documentation. Your contribution will certainly benefit the LangChain community. Keep up the good work!
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.
dosubotbot
added
Ɑ: models
Related to LLMs or chat model modules
🤖:docs
Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder
labels
Jan 8, 2024
I've seen your PR re this issue. I can see it only fixes problems with Azure, probably it is worth fixing all the OpenAI dependencies at once.
I've experienced a similar issue today. A simple upgrade of openai and langchain directly via pip did not work out. I've had to explicitly install langchain_openai to make things work, however, in my case deprecation message was about langchain_openai.OpenAIEmbeddings since I've used the old code: from langchain.embeddings.openai import OpenAIEmbeddings
The same issue occurs on two environments: Ubuntu 20.04 and Databricks 14.2
Issue with current documentation:
I created an app using AzureOpenAI, and initially, the import statement worked fine:
My original version details were:
Later, I upgraded to:
The upgrade led to a deprecation warning for
AzureChatOpenAI
. The suggestion was to uselangchain_openai.AzureChatOpenAI
, but trying to import it gave aModuleNotFoundError
. After some trial and error, I found that installinglangchain_openai
separately fixed the issue. Now, I can importAzureOpenAI
,AzureOpenAIEmbeddings
, andAzureChatOpenAI
.Idea or request for content:
Despite my research, I couldn't find documentation mentioning the need to install
langchain_openai
separately, which wasted a lot of time and created unnecessary confusion. Sharing this issue here, hope it helps others facing a similar problem. Please add this to the documentationThe text was updated successfully, but these errors were encountered: