Skip to content

Commit ecf3cd4

Browse files
fix: ensure proper JSON encoding in tool message output (#5153)
Co-authored-by: xiaoc <648844981@qq.com>
1 parent d04e2e4 commit ecf3cd4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/application/flow/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def generate_tool_message_complete(icon, name, input_content, output_content):
303303
"output": output_content
304304
}
305305
}
306-
return f'<tool_calls_render>{json.dumps(content)}</tool_calls_render>'
306+
return f'<tool_calls_render>{json.dumps(content, ensure_ascii=False)}</tool_calls_render>'
307307

308308

309309
# 全局单例事件循环

0 commit comments

Comments
 (0)