Commit graph

1108 commits

Author SHA1 Message Date
Paul Gauthier
0b45104da9 added default api_base 2023-06-20 17:14:52 -07:00
Paul Gauthier
c379cf3286 auto select edit mode 2023-06-20 17:13:26 -07:00
Paul Gauthier
5e63ce3352 refac 2023-06-20 17:04:06 -07:00
Paul Gauthier
f1350f169f refac 2023-06-20 16:59:55 -07:00
Paul Gauthier
02c9a30c45 refac 2023-06-20 16:47:37 -07:00
Paul Gauthier
bc38fcde65 aider: Called superclass's __init__ method before setting the gpt_prompts attribute in EditBlockCoder.
# Context:
USER: call super
ASSISTANT: To call the superclass's `__init__` method in the `EditBlockCoder` class, you need to modify the `aider/coders/editblock.py` file. Here's the change:

```python
aider/coders/editblock.py
<<<<<<< ORIGINAL
class EditBlockCoder(Coder):
    def __init__(self, *args, **kwargs):
        self.gpt_prompts = EditBlockPrompts()
=======
class EditBlockCoder(Coder):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.gpt_prompts = EditBlockPrompts()
>>>>>>> UPDATED
```

This change calls the superclass's `__init__` method before setting the `gpt_prompts` attribute.
2023-06-20 16:39:57 -07:00
Paul Gauthier
741249bb6b added editblockcoder 2023-06-20 16:39:31 -07:00
Paul Gauthier
602094aca3 refac 2023-06-20 16:35:56 -07:00