This commit is contained in:
Paul Gauthier 2023-06-20 17:41:56 -07:00
parent a8fe9cb491
commit e22373b55a
6 changed files with 4 additions and 8 deletions

View 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."