mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
better
This commit is contained in:
parent
a411bb1bcd
commit
5b13bbeb12
1 changed files with 3 additions and 2 deletions
5
coder.py
5
coder.py
|
@ -65,7 +65,6 @@ print(2+2)
|
||||||
|
|
||||||
To add new code, anchor it by including 2-3 lines in the ORIGINAL and UPDATED portions of the diff.
|
To add new code, anchor it by including 2-3 lines in the ORIGINAL and UPDATED portions of the diff.
|
||||||
Don't just output the ENTIRE file. Turn it into an edit.
|
Don't just output the ENTIRE file. Turn it into an edit.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
prompt_comments = '''
|
prompt_comments = '''
|
||||||
|
@ -423,14 +422,16 @@ To this file:
|
||||||
```
|
```
|
||||||
{content}
|
{content}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
ONLY OUTPUT {fname} !!!
|
||||||
'''
|
'''
|
||||||
sys_prompt = '''
|
sys_prompt = '''
|
||||||
You are an expert code editor.
|
You are an expert code editor.
|
||||||
Perform the requested edit.
|
Perform the requested edit.
|
||||||
Output ONLY the new version of the file.
|
Output ONLY the new version of the file.
|
||||||
|
Just that one file.
|
||||||
Do not output explanations!
|
Do not output explanations!
|
||||||
Do not wrap the output in ``` delimiters.
|
Do not wrap the output in ``` delimiters.
|
||||||
Just the content of the file!
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
messages = [
|
messages = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue