Skip to content

The agent engineering platform.

community: fix QianfanChatEndpoint default model (#24464)

chuanbei8886b08a33fa4b7
diff --git a/libs/community/langchain_community/chat_models/baidu_qianfan_endpoint.py b/libs/community/langchain_community/chat_models/baidu_qianfan_endpoint.py
index 8b09a473ce..3a4bb9a69a 100644
--- a/libs/community/langchain_community/chat_models/baidu_qianfan_endpoint.py
+++ b/libs/community/langchain_community/chat_models/baidu_qianfan_endpoint.py
@@ -340,13 +340,13 @@ class QianfanChatEndpoint(BaseChatModel):
In the case of other model, passing these params will not affect the result.
"""
- model: str = "ERNIE-Bot-turbo"
+ model: str = "ERNIE-Lite-8K"
"""Model name.
you could get from https://cloud.baidu.com/doc/WENXINWORKSHOP/s/Nlks5zkzu
preset models are mapping to an endpoint.
`model` will be ignored if `endpoint` is set.
- Default is ERNIE-Bot-turbo.
+ Default is ERNIE-Lite-8K.
"""
endpoint: Optional[str] = None