make json prettier

This commit is contained in:
2026-02-05 18:46:21 +08:00
parent 01819a2948
commit f02ee6096a

View File

@@ -71,7 +71,7 @@ class ConversationStore:
content = msg.content content = msg.content
# Serialize dict/list content to JSON string # Serialize dict/list content to JSON string
if not isinstance(content, str): if not isinstance(content, str):
content = json.dumps(content, ensure_ascii=False) content = json.dumps(content, ensure_ascii=False, indent=4)
self.add_message(conv_id, self._get_type(msg), content, curr_len + 1) self.add_message(conv_id, self._get_type(msg), content, curr_len + 1)
curr_len += 1 curr_len += 1
return curr_len return curr_len