mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 19:24:59 +00:00
set fixed utf-8 encoding for llm history log
This commit is contained in:
parent
484b8a3603
commit
395188043b
1 changed files with 1 additions and 1 deletions
|
@ -749,7 +749,7 @@ class InputOutput:
|
|||
if not self.llm_history_file:
|
||||
return
|
||||
timestamp = datetime.now().isoformat(timespec="seconds")
|
||||
with open(self.llm_history_file, "a", encoding=self.encoding) as log_file:
|
||||
with open(self.llm_history_file, "a", encoding="utf-8") as log_file:
|
||||
log_file.write(f"{role.upper()} {timestamp}\n")
|
||||
log_file.write(content + "\n")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue