Skip to content

Commit 3951880

Browse files
committed
set fixed utf-8 encoding for llm history log
1 parent 484b8a3 commit 3951880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aider/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ def log_llm_history(self, role, content):
749749
if not self.llm_history_file:
750750
return
751751
timestamp = datetime.now().isoformat(timespec="seconds")
752-
with open(self.llm_history_file, "a", encoding=self.encoding) as log_file:
752+
with open(self.llm_history_file, "a", encoding="utf-8") as log_file:
753753
log_file.write(f"{role.upper()} {timestamp}\n")
754754
log_file.write(content + "\n")
755755

0 commit comments

Comments
 (0)