mMrBun / AIPC

Apache License 2.0
56 stars 20 forks source link

执行报TypeError: list indices must be integers or slices, not str #4

Closed bravelll closed 8 months ago

bravelll commented 8 months ago

File "/u01/liuys/Chat2BI/web_server/web_demo.py", line 19, in text_analysis response, code, history = function_calling(text, top_k, top_p, temperature, model_type) File "/u01/liuys/Chat2BI/web_server/function_call/build_function_call_pipline.py", line 34, in function_calling response, code, history = class_instance.do_chat(query=query, File "/u01/liuys/Chat2BI/llms/chatglm3/generate.py", line 57, in do_chat response, history = self.model_chat(query, tools_system_info, top_p, temperature, tools_callable_path, tools) File "/u01/liuys/Chat2BI/llms/chatglm3/generate.py", line 23, in model_chat return self.run_task(model_response, model_history, top_p, temperature, tools_callable_path, plugin_info) File "/u01/liuys/Chat2BI/llms/chatglm3/generate.py", line 30, in run_task module_path = os.path.join(tools_callable_path, plugin_info['category'], TypeError: list indices must be integers or slices, not str

mMrBun commented 8 months ago

@bravelll 请检查工具生成路径是否正确,需要先生成工具

bravelll commented 8 months ago

@bravelll 请检查工具生成路径是否正确,需要先生成工具 路径生成的都正确

mMrBun commented 8 months ago

@bravelll 请更新代码