From a2128e51a14def2b3b671de6478d279af106fb3f Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 11 Aug 2024 10:00:01 -0700 Subject: [PATCH] fix: Use the correct edit format for the code command --- aider/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index 0a4b8ca06..0c4340730 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -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():