fix: Use the correct edit format for the code command

This commit is contained in:
Paul Gauthier 2024-08-11 10:00:01 -07:00 committed by Paul Gauthier (aider)
parent b9b5666a75
commit a2128e51a1

View file

@ -865,7 +865,7 @@ class Commands:
def cmd_code(self, args):
"Ask for changes to your code using the best edit format"
return self._generic_chat_command(args, "code")
return self._generic_chat_command(args, self.coder.main_model.edit_format)
def _generic_chat_command(self, args, edit_format):
if not args.strip():