Review comments

This commit is contained in:
Daniel Vainsencher 2024-06-12 18:28:55 -04:00
parent e6e360a4ef
commit c40b3fa310
2 changed files with 4 additions and 6 deletions

View file

@ -23,8 +23,8 @@ def get_parser(default_config_files, git_root):
group.add_argument(
"--llm-history-file",
metavar="LLM_HISTORY_FILE",
default=".aider.llm.history",
help="Specify the LLM history file (default: .aider.llm.history)",
default=None,
help="Log the conversation with the LLM to this file (for example, .aider.llm.history)",
)
group.add_argument(
"files",

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python
import datetime
import hashlib
import json
import os
@ -27,7 +28,7 @@ from aider.mdstream import MarkdownStream
from aider.repo import GitRepo
from aider.repomap import RepoMap
from aider.sendchat import send_with_retries
from aider.utils import is_image_file
from aider.utils import is_image_file, format_messages, format_content
from ..dump import dump # noqa: F401
@ -779,9 +780,6 @@ class Coder:
dict(role="user", content=inp),
]
import datetime
from aider.utils import format_messages, format_content
messages = self.format_messages()
self.io.log_llm_history("TO LLM", format_messages(messages))