mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
better
This commit is contained in:
parent
2691c80ac2
commit
6c87d5be1c
5 changed files with 33 additions and 8 deletions
|
@ -419,8 +419,8 @@ class Coder:
|
|||
]
|
||||
|
||||
main_sys = self.gpt_prompts.main_system
|
||||
if self.main_model.max_context_tokens > 4 * 1024:
|
||||
main_sys += "\n" + self.fmt_system_reminder()
|
||||
# if self.main_model.max_context_tokens > 4 * 1024:
|
||||
main_sys += "\n" + self.fmt_system_reminder()
|
||||
|
||||
messages = [
|
||||
dict(role="system", content=main_sys),
|
||||
|
@ -481,10 +481,13 @@ class Coder:
|
|||
self.update_cur_messages(content, edited)
|
||||
|
||||
if edited:
|
||||
if self.auto_commits and not self.dry_run:
|
||||
if self.repo and self.auto_commits and not self.dry_run:
|
||||
saved_message = self.auto_commit()
|
||||
elif hasattr(self.gpt_prompts, "files_content_gpt_edits_no_repo"):
|
||||
saved_message = self.gpt_prompts.files_content_gpt_edits_no_repo
|
||||
else:
|
||||
saved_message = None
|
||||
|
||||
self.move_back_cur_messages(saved_message)
|
||||
|
||||
add_rel_files_message = self.check_for_file_mentions(content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue