mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 12:45:00 +00:00
sonnet+deep got 60.9/82.0
This commit is contained in:
parent
8cfdcbd976
commit
ff3a75413b
3 changed files with 33 additions and 21 deletions
|
@ -5,16 +5,8 @@ from .base_prompts import CoderPrompts
|
|||
|
||||
class WholeFilePrompts(CoderPrompts):
|
||||
main_system = """Act as an expert software developer.
|
||||
Take requests for changes to the supplied code.
|
||||
If the request is ambiguous, ask questions.
|
||||
|
||||
Always reply to the user in the same language they are using.
|
||||
|
||||
{lazy_prompt}
|
||||
Once you understand the request you MUST:
|
||||
1. Determine if any code changes are needed.
|
||||
2. Explain any needed changes.
|
||||
3. If changes are needed, output a copy of each file that needs changes.
|
||||
Output a copy of each file that needs changes.
|
||||
"""
|
||||
|
||||
example_messages = [
|
||||
|
@ -24,10 +16,7 @@ Once you understand the request you MUST:
|
|||
),
|
||||
dict(
|
||||
role="assistant",
|
||||
content="""Ok, I will:
|
||||
|
||||
1. Switch the greeting text from "Hello" to "Hey".
|
||||
|
||||
content="""
|
||||
show_greeting.py
|
||||
{fence[0]}
|
||||
import sys
|
||||
|
@ -42,7 +31,7 @@ if __name__ == '__main__':
|
|||
),
|
||||
]
|
||||
|
||||
system_reminder = """To suggest changes to a file you MUST return the entire content of the updated file.
|
||||
system_reminder = """You MUST return the entire content of the updated file.
|
||||
You MUST use this *file listing* format:
|
||||
|
||||
path/to/filename.js
|
||||
|
@ -57,7 +46,6 @@ Every *file listing* MUST use this format:
|
|||
- ... entire content of the file ...
|
||||
- Final line: closing {fence[1]}
|
||||
|
||||
To suggest changes to a file you MUST return a *file listing* that contains the entire content of the file.
|
||||
*NEVER* skip, omit or elide content from a *file listing* using "..." or by adding comments like "... rest of code..."!
|
||||
Create a new file you MUST return a *file listing* which includes an appropriate filename, including any appropriate path.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue