TypeError: 'NoneType' object is not iterable

来源:-

qq_慕桂英4528660

2024-12-18 14:58

启动项目后,Langchain-Chatchat WebUI加载模型列表时会报错:TypeError: 'NoneType' object is not iterable。

通过调试发现调用/llm_model/list_running_models接口时会报错:llm_api.py[line:23] - ERROR: TypeError: Client.__init__() got an unexpected keyword argument 'proxies'

尝试关闭本地网络代理都没用,求解答。

写回答 关注

1回答

  • 慕仰6265062
    2025-02-21 20:11:36

    建议检查 httpx 的版本。如果当前版本是 0.28.0,尝试降级到 0.27.2,因为更高版本的 httpx 可能移除了对某些参数的支持

    pip uninstall httpx
    pip install httpx==0.27.2

    😂

AI大模型应用开发(三)LangChain-Chatchat知识库详解

LangChain-Chatchat知识库详解

1997 学习 · 7 问题

查看课程