diff --git a/astrbot/core/tools/computer_tools/shell.py b/astrbot/core/tools/computer_tools/shell.py index 2d3997387..af933e83b 100644 --- a/astrbot/core/tools/computer_tools/shell.py +++ b/astrbot/core/tools/computer_tools/shell.py @@ -73,6 +73,6 @@ class ExecuteShellTool(FunctionTool): background=background, env=env, ) - return json.dumps(result) + return json.dumps(result, ensure_ascii=False) except Exception as e: return f"Error executing command: {str(e)}"