From f44347e72dd479f54792f5874a00eca53d3e135e Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 28 Jul 2024 18:56:21 -0300 Subject: [PATCH] Modify the Coder class to use "chat" edit format and disable summarization from the main coder --- aider/commands.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index e20fd0291..a5a91e0f7 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -8,7 +8,6 @@ import git from aider import models, prompts, voice from aider.help import Help, install_help_extra -from aider.coders import ChatCoder from aider.llm import litellm from aider.scrape import Scraper, install_playwright from aider.utils import is_image_file @@ -731,11 +730,13 @@ class Commands: self.io.tool_error("Please provide a question or topic for the chat.") return - chat_coder = ChatCoder.create( + from aider.coders import Coder + + chat_coder = Coder.create( main_model=self.coder.main_model, io=self.io, from_coder=self.coder, - edit_format="whole", + edit_format="chat", summarize_from_coder=False, )