better prompt

This commit is contained in:
Paul Gauthier 2025-04-20 12:38:09 -07:00
parent 5423ffe518
commit ac1ff231e0

View file

@ -8,9 +8,18 @@ class UnifiedDiffSimplePrompts(UnifiedDiffPrompts):
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
example_messages = []
system_reminder = """# File editing rules:
Return edits similar to unified diffs that `diff -U0` would produce.
The user's patch tool needs CORRECT patches that apply cleanly against the current contents of the file!
Think carefully and make sure you include and mark all lines that need to be removed or changed as `-` lines.
Make sure you mark all new or modified lines with `+`.
Don't leave out any lines or the diff patch won't apply correctly.
To make a new file, show a diff from `--- /dev/null` to `+++ path/to/new/file.ext`.
{lazy_prompt}
"""