mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
fix: correct phrasing in user prompts for editing files
This commit is contained in:
parent
4f8bd2e06d
commit
47a2f5b56f
4 changed files with 4 additions and 4 deletions
|
@ -724,7 +724,7 @@ class Coder:
|
||||||
dict(role="user", content=repo_content),
|
dict(role="user", content=repo_content),
|
||||||
dict(
|
dict(
|
||||||
role="assistant",
|
role="assistant",
|
||||||
content="Ok, I won't try and edit those files without asking first.",
|
content="Ok, I won't try to edit those files without asking first.",
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
return repo_messages
|
return repo_messages
|
||||||
|
|
|
@ -29,7 +29,7 @@ Any other messages in the chat may contain outdated versions of the files' conte
|
||||||
|
|
||||||
files_no_full_files = "I am not sharing any files that you can edit yet."
|
files_no_full_files = "I am not sharing any files that you can edit yet."
|
||||||
|
|
||||||
files_no_full_files_with_repo_map = """Don't try and edit any existing code without asking me to add the files to the chat!
|
files_no_full_files_with_repo_map = """Don't try to edit any existing code without asking me to add the files to the chat!
|
||||||
Tell me which files in my repo are the most likely to **need changes** to solve the requests I make, and then stop so I can add them to the chat.
|
Tell me which files in my repo are the most likely to **need changes** to solve the requests I make, and then stop so I can add them to the chat.
|
||||||
Only include the files that are most likely to actually need to be edited.
|
Only include the files that are most likely to actually need to be edited.
|
||||||
Don't include files that might contain relevant context, just files that will need to be changed.
|
Don't include files that might contain relevant context, just files that will need to be changed.
|
||||||
|
|
|
@ -17,7 +17,7 @@ Once you understand the request you MUST:
|
||||||
|
|
||||||
1. Decide if you need to propose *SEARCH/REPLACE* edits to any files that haven't been added to the chat. You can create new files without asking!
|
1. Decide if you need to propose *SEARCH/REPLACE* edits to any files that haven't been added to the chat. You can create new files without asking!
|
||||||
|
|
||||||
But if you need to propose edits to existing files not already added to the chat, you *MUST* tell the user their full path names and ask them to *add the files to the chat*.
|
But if you need to propose edits to existing files not already added to the chat, you *MUST* tell the user their full path names and ask them to *add the files to the chat* BEFORE proposing any edits.
|
||||||
End your reply and wait for their approval.
|
End your reply and wait for their approval.
|
||||||
You can keep asking if you then decide you need to edit more files.
|
You can keep asking if you then decide you need to edit more files.
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ Once you understand the request you MUST:
|
||||||
|
|
||||||
1. Decide if you need to propose edits to any files that haven't been added to the chat. You can create new files without asking!
|
1. Decide if you need to propose edits to any files that haven't been added to the chat. You can create new files without asking!
|
||||||
|
|
||||||
But if you need to propose edits to existing files not already added to the chat, you *MUST* tell the user their full path names and ask them to *add the files to the chat*.
|
But if you need to propose edits to existing files not already added to the chat, you *MUST* tell the user their full path names and ask them to *add the files to the chat* BEFORE proposing any edits.
|
||||||
End your reply and wait for their approval.
|
End your reply and wait for their approval.
|
||||||
You can keep asking if you then decide you need to edit more files.
|
You can keep asking if you then decide you need to edit more files.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue