Find answers from the community

Updated 3 months ago

I got this `LangChainDeprecationWarning`

I got this LangChainDeprecationWarning
Plain Text
/home/dev/.local/lib/python3.10/site-packages/langchain/chat_models/__init__.py:31: LangChainDeprecationWarning: Importing chat models from langchain is deprecated. Importing from langchain will no longer be supported as of langchain==0.2.0. Please import from langchain-community instead:

`from langchain_community.chat_models import ChatAnyscale`.

To install langchain-community run `pip install -U langchain-community`.
  warnings.warn(
/home/dev/.local/lib/python3.10/site-packages/langchain/chat_models/__init__.py:31: LangChainDeprecationWarning: Importing chat models from langchain is deprecated. Importing from langchain will no longer be supported as of langchain==0.2.0. Please import from langchain-community instead:

`from langchain_community.chat_models import ChatOpenAI`.

I installed langchain-community but I mainly get this warning message
L
L
4 comments
yea I know. Working on it,
Curious what you are using langchain for?
I'm not using langchain
With pip freeze I got this
Plain Text
.....
langchain==0.1.0
langchain-community==0.0.11
langchain-core==0.1.9
....

I tested some observability tools.
These may be the tools that installed LangChain modules.

I uninstalled these 3 langchain modules, I no longer have this LangChainDeprecationWarning message.
Add a reply
Sign up and join the conversation on Discord