chore: refine prompts (#434)
This commit is contained in:
parent
2e2c1ba486
commit
77d344db77
@ -37,6 +37,7 @@ Replace lines: {{start_line}}-{{end_line}}
|
|||||||
```
|
```
|
||||||
|
|
||||||
3. Crucial guidelines for suggested code snippets:
|
3. Crucial guidelines for suggested code snippets:
|
||||||
|
- The content regarding line numbers MUST strictly follow the format "Replace lines: {{start_line}}-{{end_line}}". Do not be lazy!
|
||||||
- Only apply the change(s) suggested by the most recent assistant message (before your generation).
|
- Only apply the change(s) suggested by the most recent assistant message (before your generation).
|
||||||
- Do not make any unrelated changes to the code.
|
- Do not make any unrelated changes to the code.
|
||||||
- Produce a valid full rewrite of the entire original file without skipping any lines. Do not be lazy!
|
- Produce a valid full rewrite of the entire original file without skipping any lines. Do not be lazy!
|
||||||
@ -48,7 +49,6 @@ Replace lines: {{start_line}}-{{end_line}}
|
|||||||
- Maintain the SAME indentation in the returned code as in the source code
|
- Maintain the SAME indentation in the returned code as in the source code
|
||||||
|
|
||||||
4. Crucial guidelines for line numbers:
|
4. Crucial guidelines for line numbers:
|
||||||
- The content regarding line numbers MUST strictly follow the format "Replace lines: {{start_line}}-{{end_line}}". Do not be lazy!
|
|
||||||
- The range {{start_line}}-{{end_line}} is INCLUSIVE. Both start_line and end_line are included in the replacement.
|
- The range {{start_line}}-{{end_line}} is INCLUSIVE. Both start_line and end_line are included in the replacement.
|
||||||
- Count EVERY line, including empty lines and comments lines, comments. Do not be lazy!
|
- Count EVERY line, including empty lines and comments lines, comments. Do not be lazy!
|
||||||
- Use the same number for start and end lines for single-line changes.
|
- Use the same number for start and end lines for single-line changes.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user