diff --git a/.gitignore b/.gitignore index 77cadf262..0d6bfa6f7 100644 --- a/.gitignore +++ b/.gitignore @@ -336,3 +336,4 @@ MaiBot.code-workspace /tests /tests .kilocode/rules/MoFox.md +src/chat/planner_actions/planner (2).py diff --git a/src/chat/chat_loop/response_handler.py b/src/chat/chat_loop/response_handler.py index 8b56127e0..61608ccb9 100644 --- a/src/chat/chat_loop/response_handler.py +++ b/src/chat/chat_loop/response_handler.py @@ -155,6 +155,8 @@ class ResponseHandler: else: data = reply_seg["content"] + if isinstance(data, list): + data = "".join(map(str, data)) reply_text += data # 如果是主动思考且内容为“沉默”,则不发送