chatchat-space / Langchain-Chatchat

Langchain-Chatchat(原Langchain-ChatGLM, Qwen 与 Llama 等)基于 Langchain 与 ChatGLM 等语言模型的 RAG 与 Agent 应用 | Langchain-Chatchat (formerly langchain-ChatGLM), local knowledge based LLM (like ChatGLM, Qwen and Llama) RAG and Agent app with langchain
Apache License 2.0
29.52k stars 5.17k forks source link

不启用agent,单独使用网络搜索时报错 #4369

Open lingyezhixing opened 2 days ago

lingyezhixing commented 2 days ago

win11,python版本:3.10.10

Traceback (most recent call last): File "D:\LLM\Langchain-Chatchat\runtime\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in _run_script exec(code, module.dict) File "D:\LLM\Langchain-Chatchat\runtime\Lib\site-packages\chatchat\webui.py", line 69, in dialogue_page(api=api, is_lite=is_lite) File "D:\LLM\Langchain-Chatchat\runtime\lib\site-packages\chatchat\webui_pages\dialogue\dialogue.py", line 422, in dialogue_page docs = d.tool_output.get("docs") AttributeError: 'str' object has no attribute 'get'

liunux4odoo commented 2 days ago

如果是源码部署的,可以更新下 dev 分支,里面已经修复:https://github.com/chatchat-space/Langchain-Chatchat/pull/4344