mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
feat: Give udiff-simple its own prompts, inheriting from udiff prompts
This commit is contained in:
parent
ab11118c8a
commit
ba4d613cbc
2 changed files with 18 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
from .udiff_coder import UnifiedDiffCoder
|
||||
from .udiff_simple_prompts import UnifiedDiffSimplePrompts
|
||||
|
||||
|
||||
class UnifiedDiffSimpleCoder(UnifiedDiffCoder):
|
||||
|
@ -10,7 +11,4 @@ class UnifiedDiffSimpleCoder(UnifiedDiffCoder):
|
|||
|
||||
edit_format = "udiff-simple"
|
||||
|
||||
# We can inherit the prompts if they are suitable or override them here
|
||||
# For now, let's assume the base UnifiedDiffPrompts are sufficient
|
||||
# If specific prompts are needed for the "simple" version, they would be defined here.
|
||||
# gpt_prompts = UnifiedDiffSimplePrompts()
|
||||
gpt_prompts = UnifiedDiffSimplePrompts()
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
from .udiff_prompts import UnifiedDiffPrompts
|
||||
|
||||
|
||||
class UnifiedDiffSimplePrompts(UnifiedDiffPrompts):
|
||||
"""
|
||||
Prompts for the UnifiedDiffSimpleCoder.
|
||||
Inherits from UnifiedDiffPrompts and can override specific prompts
|
||||
if a simpler wording is desired for this edit format.
|
||||
"""
|
||||
|
||||
# For now, we inherit all prompts. Override specific ones below if needed.
|
||||
# For example, to override the main_system prompt:
|
||||
# main_system = """
|
||||
# A simpler version of the main system prompt for udiff-simple.
|
||||
# """
|
||||
pass
|
Loading…
Add table
Add a link
Reference in a new issue