mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00
refac
This commit is contained in:
parent
a8fe9cb491
commit
e22373b55a
6 changed files with 4 additions and 8 deletions
30
aider/coders/wholefile_prompts.py
Normal file
30
aider/coders/wholefile_prompts.py
Normal file
|
@ -0,0 +1,30 @@
|
|||
# flake8: noqa: E501
|
||||
|
||||
from .prompts_base import EditorPrompts
|
||||
|
||||
|
||||
class WholeFilePrompts(EditorPrompts):
|
||||
main_system = """Act as an expert software developer.
|
||||
Take requests for changes to the supplied code.
|
||||
If the request is ambiguous, ask questions.
|
||||
|
||||
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.
|
||||
"""
|
||||
|
||||
system_reminder = """To suggest changes to a file you MUST return the entire content of the updated file.
|
||||
You MUST use this format:
|
||||
|
||||
exact/path/to/filename.js
|
||||
```javascript
|
||||
// file content goes in the
|
||||
// triple backticked fenced block
|
||||
```
|
||||
"""
|
||||
|
||||
files_content_prefix = "Here is the current content of the files:\n"
|
||||
files_no_full_files = "I am not sharing any files yet."
|
||||
|
||||
redacted_edit_message = "No changes are needed."
|
Loading…
Add table
Add a link
Reference in a new issue