stronger wholefile prompt about file listings; adopt allowed_to_edit in wholefile; tests

This commit is contained in:
Paul Gauthier 2023-06-24 14:45:43 -07:00
parent d00e7c39d1
commit eaf02da46b
4 changed files with 50 additions and 12 deletions

View file

@ -14,14 +14,20 @@ Once you understand the request you MUST:
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:
system_reminder = """
To return code you MUST use this *file listing* format:
exact/path/to/filename.js
```javascript
// file content goes in the
// triple backticked fenced block
```
Every *file listing* must start with the full path!
Every *file listing* must be fenced w/triple backticks with the correct code language.
To suggest changes to a file you MUST return a *file listing* that contains the entire content of the file.
Create a new file you MUST return a *file listing* which includes an appropriate path/filename.
"""
files_content_prefix = "Here is the current content of the files:\n"