Skip to content

Commit cfca986

Browse files
Update service.py
1 parent e894b95 commit cfca986

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/askui/chat/api/messages/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def save(self, thread_id: ThreadId, messages: list[Message]) -> None:
9696
raise ValueError(error_msg)
9797
messages = sorted(messages, key=lambda m: m.created_at)
9898
thread_path = self._get_thread_path(thread_id)
99-
with thread_path.open("w") as f:
99+
with thread_path.open("w", encoding="utf-8") as f:
100100
for msg in messages:
101101
f.write(msg.model_dump_json())
102102
f.write("\n")

0 commit comments

Comments
 (0)