问答详情
源自:-

TypeError: 'NoneType' object is not iterable

启动项目后,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'

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

提问者:qq_慕桂英4528660 2024-12-18 14:58

个回答

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

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

    pip uninstall httpx
    pip install httpx==0.27.2

    😂