From c40b3fa3106c6fee80a0163b8ee07c6d65c963f9 Mon Sep 17 00:00:00 2001 From: Daniel Vainsencher Date: Wed, 12 Jun 2024 18:28:55 -0400 Subject: [PATCH] Review comments --- aider/args.py | 4 ++-- aider/coders/base_coder.py | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/aider/args.py b/aider/args.py index 24682fa55..a96dc196d 100644 --- a/aider/args.py +++ b/aider/args.py @@ -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", diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index a8ddf8830..9b2a9ed9a 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -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))