-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Description
langchain 部署本地模型,TypeError: string indices must be integers
2025-11-24 22:21:25.645 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:25.648 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:25.649 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:25.649 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-11-24 22:21:25.878 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:25.882 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:25.882 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:25.882 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-11-24 22:21:27.949 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:27.953 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:27.953 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:27.953 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-11-24 22:21:31.105 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:31.108 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:31.108 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:31.109 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-11-24 22:21:40.212 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:40.215 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:40.216 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:21:40.216 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
INFO: 127.0.0.1:40646 - "POST /chat/chat/completions HTTP/1.1" 200 OK
2025-11-24 22:21:40,984 httpx 727160 INFO HTTP Request: POST http://127.0.0.1:7861/chat/chat/completions "HTTP/1.1 200 OK"
2025-11-24 22:21:41,011 httpx 726945 INFO HTTP Request: POST http://127.0.0.1:9997/v1/chat/completions "HTTP/1.1 200 OK"
2025-11-24 22:21:45.793 | WARNING | chatchat.server.api_server.openai_routes:generator:102 - streaming progress has been interrupted by user.
2025-11-24 22:22:40.912 | ERROR | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/create_knowledge_base: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:40.915 | ERROR | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/create_knowledge_base: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:40.915 | ERROR | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/create_knowledge_base: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:40.915 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-11-24 22:22:50.446 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /knowledge_base/list_knowledge_bases: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:50.449 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /knowledge_base/list_knowledge_bases: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:50.449 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /knowledge_base/list_knowledge_bases: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:50.449 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-11-24 22:22:50.450 Uncaught app exception
Traceback (most recent call last):
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/chatchat/webui.py", line 71, in
kb_chat(api=api)
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/chatchat/webui_pages/kb_chat.py", line 118, in kb_chat
kb_list = [x["kb_name"] for x in api.list_knowledge_bases()]
TypeError: 'NoneType' object is not iterable
2025-11-24 22:22:50.624 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /knowledge_base/list_knowledge_bases: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:50.627 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /knowledge_base/list_knowledge_bases: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:50.627 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /knowledge_base/list_knowledge_bases: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:50.627 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-11-24 22:22:50.628 Uncaught app exception
Traceback (most recent call last):
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/chatchat/webui.py", line 71, in
kb_chat(api=api)
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/chatchat/webui_pages/kb_chat.py", line 118, in kb_chat
kb_list = [x["kb_name"] for x in api.list_knowledge_bases()]
TypeError: 'NoneType' object is not iterable
2025-11-24 22:22:52.175 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /knowledge_base/list_knowledge_bases: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:52.178 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /knowledge_base/list_knowledge_bases: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:52.178 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /knowledge_base/list_knowledge_bases: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:52.178 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-11-24 22:22:52.179 Uncaught app exception
Traceback (most recent call last):
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/chatchat/webui.py", line 71, in
kb_chat(api=api)
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/chatchat/webui_pages/kb_chat.py", line 118, in kb_chat
kb_list = [x["kb_name"] for x in api.list_knowledge_bases()]
TypeError: 'NoneType' object is not iterable
2025-11-24 22:22:52.405 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /knowledge_base/list_knowledge_bases: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:52.408 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /knowledge_base/list_knowledge_bases: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:52.408 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /knowledge_base/list_knowledge_bases: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:22:52.408 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-11-24 22:22:52.408 Uncaught app exception
Traceback (most recent call last):
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/chatchat/webui.py", line 71, in
kb_chat(api=api)
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/chatchat/webui_pages/kb_chat.py", line 118, in kb_chat
kb_list = [x["kb_name"] for x in api.list_knowledge_bases()]
TypeError: 'NoneType' object is not iterable
2025-11-24 22:23:07.071 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:23:07.075 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:23:07.075 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:23:07.075 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-11-24 22:23:07.279 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:23:07.282 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:23:07.282 | ERROR | chatchat.webui_pages.utils:get:64 - TypeError: error when get /tools: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:23:07.282 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-11-24 22:23:12.239 | ERROR | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/search_docs: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:23:12.239 | ERROR | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/search_docs: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:23:12.239 | ERROR | chatchat.webui_pages.utils:post:87 - TypeError: error when post /knowledge_base/search_docs: Client.init() got an unexpected keyword argument 'proxies'
2025-11-24 22:23:12.240 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-11-24 22:23:12.240 Uncaught app exception
Traceback (most recent call last):
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/chatchat/webui.py", line 69, in
knowledge_base_page(api=api, is_lite=is_lite)
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/chatchat/webui_pages/knowledge_base/knowledge_base.py", line 374, in knowledge_base_page
data = [
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/chatchat/webui_pages/knowledge_base/knowledge_base.py", line 377, in
"id": x["id"],
TypeError: string indices must be integers 使用知识库问答时报错 请问如何解决
另外 RAG对话 页面也是报错 “ypeError: 'NoneType' object is not iterable
Traceback:
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/chatchat/webui.py", line 71, in
kb_chat(api=api)
File "/home/boss/Llama-factory/conda/envs/chatchat/lib/python3.10/site-packages/chatchat/webui_pages/kb_chat.py", line 118, in kb_chat
kb_list = [x["kb_name"] for x in api.list_knowledge_bases()] 请问这怎么解决
我的模型对话是可以的