mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 19:55:00 +00:00
feat: Add editor-diff-fenced coder and prompts classes
This commit is contained in:
parent
38be8aa0da
commit
b45186dde0
2 changed files with 18 additions and 0 deletions
9
aider/coders/editor_diff_fenced_coder.py
Normal file
9
aider/coders/editor_diff_fenced_coder.py
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
from .editblock_coder import EditBlockCoder
|
||||||
|
from .editor_diff_fenced_prompts import EditorDiffFencedPrompts
|
||||||
|
|
||||||
|
|
||||||
|
class EditorDiffFencedCoder(EditBlockCoder):
|
||||||
|
"A coder that uses search/replace blocks, focused purely on editing files."
|
||||||
|
|
||||||
|
edit_format = "editor-diff-fenced"
|
||||||
|
gpt_prompts = EditorDiffFencedPrompts()
|
9
aider/coders/editor_diff_fenced_prompts.py
Normal file
9
aider/coders/editor_diff_fenced_prompts.py
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# flake8: noqa: E501
|
||||||
|
|
||||||
|
from .editor_editblock_prompts import EditorEditBlockPrompts
|
||||||
|
|
||||||
|
|
||||||
|
class EditorDiffFencedPrompts(EditorEditBlockPrompts):
|
||||||
|
# Inherits the prompts from EditorEditBlockPrompts
|
||||||
|
# Specific overrides can be added here if needed
|
||||||
|
pass
|
Loading…
Add table
Add a link
Reference in a new issue