feat: refine prompts for openai (#57)

This commit is contained in:
yetone 2024-08-18 04:47:47 +08:00 committed by GitHub
parent c4e26a8767
commit c25521070a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,8 +189,9 @@ Replace lines: {{start_line}}-{{end_line}}
- Please keep your suggested code changes minimal, and do not include irrelevant lines in the code snippet. - Please keep your suggested code changes minimal, and do not include irrelevant lines in the code snippet.
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}}".
- 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, comments, and the LAST line of the file. - Count EVERY line, including empty lines and comments lines, comments. Do not be lazy!
- For single-line changes, use the same number for start and end lines. - For single-line changes, use the same number for start and end lines.
- For multi-line changes, ensure the range covers ALL affected lines, from the very first to the very last. - For multi-line changes, ensure the range covers ALL affected lines, from the very first to the very last.
- Double-check that your line numbers align perfectly with the original code structure. - Double-check that your line numbers align perfectly with the original code structure.