mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 00:05:01 +00:00
ugh
This commit is contained in:
parent
4b516868ed
commit
1dfe6b31f1
2 changed files with 50 additions and 7 deletions
31
prompts.py
31
prompts.py
|
@ -33,6 +33,37 @@ example.py
|
|||
>>>>>>> UPDATED
|
||||
'''
|
||||
|
||||
returned_code = '''
|
||||
It looks like you tried to return code. Don't do that!
|
||||
|
||||
Only return code using the specific ORIGINAL/UPDATED format shown in the examples below.
|
||||
|
||||
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
|
||||
|
||||
Here are examples:
|
||||
|
||||
path/to/filename.ext
|
||||
<<<<<<< ORIGINAL
|
||||
original lines
|
||||
to search for
|
||||
=======
|
||||
new lines to replace
|
||||
the original chunk
|
||||
>>>>>>> UPDATED
|
||||
|
||||
example.py
|
||||
<<<<<<< ORIGINAL
|
||||
# Function to multiply two numbers
|
||||
=======
|
||||
# Function to multiply two numbers using the standard algorithm
|
||||
>>>>>>> UPDATED
|
||||
'''
|
||||
|
||||
system_reminder = 'REMEMBER, ONLY RETURN CODE USING THE ORIGINAL/UPDATED FORMAT!'
|
||||
|
||||
### FILES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue