mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
feat: pass "code" instead of self.edit_format when it matches self.main_model.edit_format
This commit is contained in:
parent
70fb4c2d03
commit
6f9d4a2c72
1 changed files with 2 additions and 1 deletions
|
@ -778,13 +778,14 @@ class Coder:
|
||||||
inchat_files = self.get_inchat_relative_files()
|
inchat_files = self.get_inchat_relative_files()
|
||||||
read_only_files = [self.get_rel_fname(fname) for fname in self.abs_read_only_fnames]
|
read_only_files = [self.get_rel_fname(fname) for fname in self.abs_read_only_fnames]
|
||||||
all_files = sorted(set(inchat_files + read_only_files))
|
all_files = sorted(set(inchat_files + read_only_files))
|
||||||
|
edit_format = "code" if self.edit_format == self.main_model.edit_format else self.edit_format
|
||||||
return self.io.get_input(
|
return self.io.get_input(
|
||||||
self.root,
|
self.root,
|
||||||
all_files,
|
all_files,
|
||||||
self.get_addable_relative_files(),
|
self.get_addable_relative_files(),
|
||||||
self.commands,
|
self.commands,
|
||||||
self.abs_read_only_fnames,
|
self.abs_read_only_fnames,
|
||||||
edit_format=self.edit_format,
|
edit_format=edit_format,
|
||||||
)
|
)
|
||||||
|
|
||||||
def preproc_user_input(self, inp):
|
def preproc_user_input(self, inp):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue