首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >langchain-chatchat报错Client.__init__() got an unexpected keyword argument ‘proxies‘

langchain-chatchat报错Client.__init__() got an unexpected keyword argument ‘proxies‘

作者头像
云未归来
发布2025-07-22 13:21:52
发布2025-07-22 13:21:52
6100
代码可运行
举报
运行总次数:0
代码可运行

测试环境:

python3.10

langchain-chatchat==0.3.1.3

报错:

代码语言:javascript
代码运行次数:0
运行
复制
  warnings.warn(
2024-12-02 07:49:16.579 | WARNING  | chatchat.server.utils:get_default_embedding:214 - default embedding model bge-large-zh-v1.5 is not found in available embeddings, using quentinz/bge-large-zh-v1.5 instead
2024-12-02 07:49:16.581 | WARNING  | chatchat.server.utils:get_default_embedding:214 - default embedding model bge-large-zh-v1.5 is not found in available embeddings, using quentinz/bge-large-zh-v1.5 instead
2024-12-02 07:49:16.582 | WARNING  | chatchat.server.utils:get_default_embedding:214 - default embedding model bge-large-zh-v1.5 is not found in available embeddings, using quentinz/bge-large-zh-v1.5 instead
2024-12-02 07:49:16.584 | WARNING  | chatchat.server.utils:get_default_embedding:214 - default embedding model bge-large-zh-v1.5 is not found in available embeddings, using quentinz/bge-large-zh-v1.5 instead
2024-12-02 07:49:23.918 | ERROR    | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/update_info: Client.__init__() got an unexpected keyword argument 'proxies'
2024-12-02 07:49:23.919 | ERROR    | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/update_info: Client.__init__() got an unexpected keyword argument 'proxies'
2024-12-02 07:49:23.921 | ERROR    | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/update_info: Client.__init__() got an unexpected keyword argument 'proxies'
2024-12-02 07:49:23.923 | ERROR    | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2024-12-02 07:49:24.063 | ERROR    | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/update_info: Client.__init__() got an unexpected keyword argument 'proxies'
2024-12-02 07:49:24.064 | ERROR    | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/update_info: Client.__init__() got an unexpected keyword argument 'proxies'
2024-12-02 07:49:24.070 | ERROR    | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/update_info: Client.__init__() got an unexpected keyword argument 'proxies'
2024-12-02 07:49:24.071 | ERROR    | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2024-12-02 07:49:24.088 | ERROR    | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/upload_docs: Client.__init__() got an unexpected keyword argument 'proxies'
2024-12-02 07:49:24.092 | ERROR    | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/upload_docs: Client.__init__() got an unexpected keyword argument 'proxies'
2024-12-02 07:49:24.094 | ERROR    | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/upload_docs: Client.__init__() got an unexpected keyword argument 'proxies'
2024-12-02 07:49:24.097 | ERROR    | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'

如果报类似错误,请用pip list查看自己httpx版本,我发现最新httpx==0.28.0是不行的,需要0.27.2版本才可以,重新安装后就不会报错了

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2025-07-16,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档