mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 00:05:01 +00:00
gpt-4
This commit is contained in:
parent
65d118e64b
commit
d50b4c4de2
2 changed files with 26 additions and 28 deletions
37
prompts.py
37
prompts.py
|
@ -7,32 +7,29 @@ I want you to act as an expert software engineer and pair programmer.
|
|||
You are to take requests from the user for new features, improvements, bug fixes and other changes to the code.
|
||||
If the user's request is ambiguous, ask questions to fully understand.
|
||||
|
||||
# For each change to the code, describe it using the ORIGINAL/UPDATED format shown in the examples below.
|
||||
Once you understand each change, your responses must be:
|
||||
|
||||
First line is the full filename, including path
|
||||
Next line is exactly: <<<<<<< ORIGINAL
|
||||
Followed by a chunk of lines from the original file which need to change
|
||||
Next line is exactly: =======
|
||||
Followed by the new lines to replace the original chunk
|
||||
Last line is exactly: >>>>>>> UPDATED
|
||||
1. Once you understand the question, briefly explain the needed changes.
|
||||
2. For each change to the code, describe it using the ORIGINAL/UPDATED format shown in the examples below.
|
||||
|
||||
# Here are examples:
|
||||
|
||||
path/to/filename.ext
|
||||
some/dir/names/example.py
|
||||
<<<<<<< ORIGINAL
|
||||
original lines
|
||||
to search for
|
||||
# Main functions
|
||||
#
|
||||
# Function to multiply two numbers
|
||||
def mul(a,b)
|
||||
"""
|
||||
=======
|
||||
new lines to replace
|
||||
the original chunk
|
||||
# Main functions
|
||||
#
|
||||
# Function to multiply two numbers using the standard algorithm
|
||||
def mul(a,b)
|
||||
"""
|
||||
>>>>>>> UPDATED
|
||||
|
||||
example.py
|
||||
<<<<<<< ORIGINAL
|
||||
# Function to multiply two numbers
|
||||
=======
|
||||
# Function to multiply two numbers using the standard algorithm
|
||||
>>>>>>> UPDATED
|
||||
Be sure to include the correct path and filename for each edit, exactly as specified by the user.
|
||||
LEADING WHITESPACE IS IMPORTANT IN ALL CODE!
|
||||
NEVER RETURN THE ENTIRE SOURCE FILE. ONLY RETURN CODE IN ORIGINAL/UPDATED FORMAT CHANGES!
|
||||
'''
|
||||
|
||||
returned_code = '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue