Skip to content
This repository was archived by the owner on May 5, 2026. It is now read-only.

docs: update code example, fix deprecation warning - #404

Open
Muhammad Muhajir (muhajirdev) wants to merge 1 commit into
langchain-ai:mainfrom
muhajirdev:patch-1
Open

docs: update code example, fix deprecation warning#404
Muhammad Muhajir (muhajirdev) wants to merge 1 commit into
langchain-ai:mainfrom
muhajirdev:patch-1

Conversation

@muhajirdev

@muhajirdev Muhammad Muhajir (muhajirdev) commented Jan 20, 2024

Copy link
Copy Markdown

There's this warning when I run the code

LangChainDeprecationWarning: The class `langchain_community.chat_models.openai.ChatOpenAI` was deprecated in langchain-community 0.0.10 and will be removed in 0.2.0. An updated version of the class exists in the langchain-openai package and should be used instead. To use it run `pip install -U langchain-openai` and import as `from langchain_openai import ChatOpenAI`.

```
LangChainDeprecationWarning: The class `langchain_community.chat_models.openai.ChatOpenAI` was deprecated in langchain-community 0.0.10 and will be removed in 0.2.0. An updated version of the class exists in the langchain-openai package and should be used instead. To use it run `pip install -U langchain-openai` and import as `from langchain_openai import ChatOpenAI`.
```
@cla-bot

cla-bot Bot commented Jan 20, 2024

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the username Muhammad Muhajir (@muhajirdev) on file. In order for us to review and merge your code, please complete the Individual Contributor License Agreement here https://forms.gle/AQFbtkWRoHXUgipM6 .

This process is done manually on our side, so after signing the form one of the maintainers will add you to the contributors list.

For more details about why we have a CLA and other contribution guidelines please see: https://github.com/langchain-ai/langserve/blob/main/CONTRIBUTING.md.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant