Skip to content

Commit d9afca0

Browse files
committed
fix: add ensure_ascii=False to json.dumps for tool result to display CJK characters correctly
1 parent 446be84 commit d9afca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/flow/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ async def _yield_mcp_response(chat_model, message_list, mcp_servers, mcp_output_
404404
tool_lib_id = tool_result.pop('tool_id') if 'tool_id' in tool_result else None
405405
if tool_lib_id:
406406
await save_tool_record(tool_lib_id, tool_info, tool_result, source_id, source_type)
407-
tool_result = json.dumps(tool_result)
407+
tool_result = json.dumps(tool_result, ensure_ascii=False)
408408
except Exception as e:
409409
tool_result = chunk[0].content
410410
content = generate_tool_message_complete(

0 commit comments

Comments
 (0)