From d5623bf2d492ea76e334a473c911872057c80934 Mon Sep 17 00:00:00 2001 From: xiaoc <648844981@qq.com> Date: Thu, 23 Apr 2026 14:59:50 +0800 Subject: [PATCH] fix: ensure proper JSON encoding in tool message output --- apps/application/flow/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/application/flow/tools.py b/apps/application/flow/tools.py index 17dc3c010b3..d14e8319ca2 100644 --- a/apps/application/flow/tools.py +++ b/apps/application/flow/tools.py @@ -303,7 +303,7 @@ def generate_tool_message_complete(icon, name, input_content, output_content): "output": output_content } } - return f'{json.dumps(content)}' + return f'{json.dumps(content, ensure_ascii=False)}' # 全局单例事件循环