mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
aider: Capitalize the "ASSISTANT" role when logging to the LLM history file.
# Aider chat conversation: USER: When logging to llm history file, capitalize the ASSISTANT role. ASSISTANT: To capitalize the "ASSISTANT" role when logging to the LLM history file, we need to modify the `send_new_user_message` method in `aider/coders/base_coder.py`. Here is the *SEARCH/REPLACE* block: aider/coders/base_coder.py ```python <<<<<<< SEARCH with open('.aider.llm.history', 'a') as log_file: log_file.write(f"LLM RESPONSE {timestamp}\n") log_file.write(format_content("assistant", content) + "\n") ======= with open('.aider.llm.history', 'a') as log_file: log_file.write(f"LLM RESPONSE {timestamp}\n") log_file.write(format_content("ASSISTANT", content) + "\n") >>>>>>> REPLACE ```
This commit is contained in:
parent
2bd5daf2ad
commit
8896909e19
1 changed files with 1 additions and 1 deletions
|
@ -834,7 +834,7 @@ class Coder:
|
|||
timestamp = datetime.datetime.now().isoformat(timespec='seconds')
|
||||
with open('.aider.llm.history', 'a') as log_file:
|
||||
log_file.write(f"LLM RESPONSE {timestamp}\n")
|
||||
log_file.write(format_content("assistant", content) + "\n")
|
||||
log_file.write(format_content("ASSISTANT", content) + "\n")
|
||||
|
||||
if interrupted:
|
||||
content += "\n^C KeyboardInterrupt"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue