mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
prompts
This commit is contained in:
parent
aba0b96904
commit
ecb70d76f5
1 changed files with 11 additions and 4 deletions
15
prompts.py
15
prompts.py
|
@ -45,12 +45,15 @@ some/dir/example.py
|
||||||
"""Multiplies 2 numbers"""
|
"""Multiplies 2 numbers"""
|
||||||
>>>>>>> UPDATED
|
>>>>>>> UPDATED
|
||||||
|
|
||||||
NEVER REPLY WITH AN ENTIRE FILE TRIPLE-QUOTED FORMAT LIKE THE USER MESSAGES!
|
*NEVER REPLY WITH AN ENTIRE FILE TRIPLE-QUOTED FORMAT LIKE THE USER MESSAGES!*
|
||||||
ANY CODE YOU INCLUDE IN A REPLY *MUST* BE IN THE ORIGINAL/UPDATED FORMAT!
|
*ANY CODE YOU INCLUDE IN A REPLY *MUST* BE IN THE ORIGINAL/UPDATED FORMAT!*
|
||||||
|
|
||||||
EVERY ORIGINAL/UPDATED BLOCK MUST START WITH THE FILENAME!
|
EVERY ORIGINAL/UPDATED BLOCK MUST START WITH THE FILENAME!
|
||||||
EVERY ORIGINAL/UPDATED BLOCK MUST BE TRIPLE QUOTED!
|
EVERY ORIGINAL/UPDATED BLOCK MUST BE TRIPLE QUOTED!
|
||||||
|
|
||||||
THE ORIGINAL BLOCK MUST BE THE *EXACT* LINES FROM THE FILE!
|
THE ORIGINAL BLOCK MUST BE THE *EXACT* LINES FROM THE FILE!
|
||||||
THE ORIGINAL BLOCK MUST INCLUDE ALL THE ORIGINAL LEADING SPACES AND INDENTATION!
|
THE ORIGINAL BLOCK MUST INCLUDE ALL THE ORIGINAL LEADING SPACES AND INDENTATION!
|
||||||
|
|
||||||
EDITS TO DIFFERENT PARTS OF A FILE EACH NEED THEIR OWN ORIGINAL/UPDATED BLOCKS.
|
EDITS TO DIFFERENT PARTS OF A FILE EACH NEED THEIR OWN ORIGINAL/UPDATED BLOCKS.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -65,7 +68,11 @@ Only return the parts of the code which need changes!
|
||||||
|
|
||||||
# FILES
|
# FILES
|
||||||
|
|
||||||
files_content_gpt_edits = "I made your suggested changes to the files."
|
files_content_gpt_edits = "I committed your suggested changes with git hash {hash} and commit message: {message}"
|
||||||
|
|
||||||
|
files_content_gpt_no_edits = (
|
||||||
|
"I wasn't able to see any properly formatted edits in your reply?!"
|
||||||
|
)
|
||||||
|
|
||||||
files_content_local_edits = "I made some changes to the files myself."
|
files_content_local_edits = "I made some changes to the files myself."
|
||||||
|
|
||||||
|
@ -107,6 +114,6 @@ ONLY OUTPUT {fname} !!!
|
||||||
# COMMIT
|
# COMMIT
|
||||||
commit_system = """You are an expert software engineer.
|
commit_system = """You are an expert software engineer.
|
||||||
Review the provided context and diffs which are about to be committed to a git repo.
|
Review the provided context and diffs which are about to be committed to a git repo.
|
||||||
Generate a 1 line, 1-2 sentence commit message.
|
Generate a 1 line, 1-2 sentence commit message that describes the purpose of the changes.
|
||||||
Reply with JUST the commit message, without quotes, comments, questions, etc.
|
Reply with JUST the commit message, without quotes, comments, questions, etc.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue