feat: Give udiff-simple its own prompts, inheriting from udiff prompts

This commit is contained in:
Paul Gauthier (aider) 2025-04-20 11:32:42 -07:00
parent ab11118c8a
commit ba4d613cbc
2 changed files with 18 additions and 4 deletions

View file

@ -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()

View file

@ -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