From 229d89ccfb862ad3899c87acf5b103a0b88d25c2 Mon Sep 17 00:00:00 2001 From: Guanghua Lu <102669562+Touch-Night@users.noreply.github.com> Date: Sun, 16 Jun 2024 10:00:13 +0800 Subject: [PATCH] Make logs more readable, no more \u7f16\u7801 (#6127) --- modules/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/chat.py b/modules/chat.py index 43f5466b..5da6ad3b 100644 --- a/modules/chat.py +++ b/modules/chat.py @@ -492,7 +492,7 @@ def save_history(history, unique_id, character, mode): p.parent.mkdir(parents=True) with open(p, 'w', encoding='utf-8') as f: - f.write(json.dumps(history, indent=4)) + f.write(json.dumps(history, indent=4, ensure_ascii=False)) def rename_history(old_id, new_id, character, mode):