ERNIE-Bot is a large language model developed by Baidu, covering a huge amount of Chinese data. This notebook covers how to get started with ErnieBot chat models. Deprecated Warning We recommend users switch fromDocumentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
langchain_community.chat_models.ErnieBotChat to langchain_community.chat_models.QianfanChatEndpoint.
documentation for QianfanChatEndpoint is the Ernie documentation.
There are 4 reasons why we recommend users to use QianfanChatEndpoint:
QianfanChatEndpointsupports more LLMs in the Qianfan platform.QianfanChatEndpointsupports streaming mode.QianfanChatEndpointsupport function calling usage.ErnieBotChatis no longer maintained and has been deprecated.
- change
ernie_client_idtoqianfan_ak, also changeernie_client_secrettoqianfan_sk. - install
qianfanpackage. likepip install qianfan - change
ErnieBotChattoQianfanChatEndpoint.
Usage
client_id and client_secret in your environment variables
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

