mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
more prompt engineering nonsense
This commit is contained in:
parent
1313a3f36b
commit
8fa8f6560d
2 changed files with 17 additions and 12 deletions
20
prompts.py
20
prompts.py
|
@ -40,6 +40,15 @@ some/dir/example.py
|
|||
>>>>>>> UPDATED
|
||||
'''
|
||||
|
||||
system_reminder = """
|
||||
NEVER REPLY WITH AN ENTIRE FILE IN THE TRIPLE-QUOTED FORMAT LIKE THE USER MESSAGES!
|
||||
ANY CODE YOU INCLUDE IN A REPLY *MUST* BE IN THE ORIGINAL/UPDATED FORMAT!
|
||||
EVERY ORIGINAL/UPDATED BLOCK MUST START WITH THE FILENAME!
|
||||
THE ORIGINAL BLOCK MUST BE THE *EXACT* LINES FROM THE FILE!
|
||||
THE ORIGINAL BLOCK MUST INCLUDE ALL THE ORIGINAL LEADING SPACES AND INDENTATION!
|
||||
"""
|
||||
|
||||
|
||||
returned_code = """
|
||||
It looks like you tried to return a code block. Don't do that!
|
||||
|
||||
|
@ -48,8 +57,6 @@ Be selective!
|
|||
Only return the parts of the code which need changes!
|
||||
"""
|
||||
|
||||
system_reminder = "REMEMBER, ONLY RETURN CODE USING THE ORIGINAL/UPDATED FORMAT!"
|
||||
|
||||
### FILES
|
||||
|
||||
files_content_gpt_edits = "I made your suggested changes to the files."
|
||||
|
@ -58,14 +65,7 @@ files_content_local_edits = "I made some changes to the files myself."
|
|||
|
||||
files_content_prefix = "Here is the current content of the files:\n\n"
|
||||
|
||||
files_content_suffix = """BASE ANY EDITS ON THE CURRENT CONTENTS OF THE FILES AS SHOWN IN THE USER'S LAST MESSAGE.
|
||||
NEVER REPLY WITH AN ENTIRE FILE IN THE TRIPLE-QUOTED FORMAT LIKE THAT!
|
||||
ANY CODE YOU INCLUDE IN A REPLY MUST BE IN THE ORIGINAL/UPDATED FORMAT!
|
||||
THE ORIGINAL BLOCK MUST BE THE *EXACT* LINES FROM THE FILE!
|
||||
INCLUDE ALL THE LEADING SPACES!!
|
||||
Be sure to include the correct path and filename for each edit, exactly as specified by the user.
|
||||
DO NOT REPLY WITH diff OUTPUT!
|
||||
"""
|
||||
files_content_suffix = """Base any edits on the current contents of the files as shown in the user's last message."""
|
||||
|
||||
|
||||
### EDITOR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue