From 6b08a33fa4b7cc059295e204fc7c398c809b49e9 Mon Sep 17 00:00:00 2001 From: chuanbei888 <104330857+chuanbei888@users.noreply.github.com> Date: Sat, 20 Jul 2024 21:00:29 +0800 Subject: [PATCH] community: fix QianfanChatEndpoint default model (#24464) the baidu_qianfan_endpoint has been changed from ERNIE-Bot-turbo to ERNIE-Lite-8K --- .../langchain_community/chat_models/baidu_qianfan_endpoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 8b09a473ce7..3a4bb9a69a1 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