Remove __init__ from all coders and set edit_format and gpt_prompts like ChatCoder

This commit is contained in:
Your Name (aider) 2024-07-28 18:43:14 -03:00
parent 916021bf10
commit 5fcf454968
6 changed files with 5 additions and 21 deletions

View file

@ -14,10 +14,7 @@ from .editblock_prompts import EditBlockPrompts
class EditBlockCoder(Coder):
edit_format = "diff"
def __init__(self, *args, **kwargs):
self.gpt_prompts = EditBlockPrompts()
super().__init__(*args, **kwargs)
gpt_prompts = EditBlockPrompts()
def get_edits(self):
content = self.partial_response_content