mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
Modify the Coder class to use "chat" edit format and disable summarization from the main coder
This commit is contained in:
parent
bc73832d0d
commit
f44347e72d
1 changed files with 4 additions and 3 deletions
|
@ -8,7 +8,6 @@ import git
|
||||||
|
|
||||||
from aider import models, prompts, voice
|
from aider import models, prompts, voice
|
||||||
from aider.help import Help, install_help_extra
|
from aider.help import Help, install_help_extra
|
||||||
from aider.coders import ChatCoder
|
|
||||||
from aider.llm import litellm
|
from aider.llm import litellm
|
||||||
from aider.scrape import Scraper, install_playwright
|
from aider.scrape import Scraper, install_playwright
|
||||||
from aider.utils import is_image_file
|
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.")
|
self.io.tool_error("Please provide a question or topic for the chat.")
|
||||||
return
|
return
|
||||||
|
|
||||||
chat_coder = ChatCoder.create(
|
from aider.coders import Coder
|
||||||
|
|
||||||
|
chat_coder = Coder.create(
|
||||||
main_model=self.coder.main_model,
|
main_model=self.coder.main_model,
|
||||||
io=self.io,
|
io=self.io,
|
||||||
from_coder=self.coder,
|
from_coder=self.coder,
|
||||||
edit_format="whole",
|
edit_format="chat",
|
||||||
summarize_from_coder=False,
|
summarize_from_coder=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue