mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
fix: ensure JSON response is encoded with non-ASCII characters for shell command execution (#7475)
fixes: #7452
This commit is contained in:
@@ -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)}"
|
||||
|
||||
Reference in New Issue
Block a user