improve code suggestion prompt

This commit is contained in:
mrT23
2024-09-25 17:42:59 +03:00
parent c828cdde62
commit 4713ae74b7
2 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ __old hunk__
## File: 'src/file2.py'
...
======
- In the format above, the diff is organized into seperate '__new hunk__' and '__old hunk__' sections for each code chunk. '__new hunk__' contains the updated code, while '__old hunk__' shows the removed code. If no code was added or removed in a specific chunk, the corresponding section will be omitted.
- In the format above, the diff is organized into separate '__new hunk__' and '__old hunk__' sections for each code chunk. '__new hunk__' contains the updated code, while '__old hunk__' shows the removed code. If no code was added or removed in a specific chunk, the corresponding section will be omitted.
- Line numbers are included for the '__new hunk__' sections to enable referencing specific lines in the code suggestions. These numbers are for reference only and are not part of the actual code.
- Code lines are prefixed with symbols: '+' for new code added in the PR, '-' for code removed, and ' ' for unchanged code.
{%- if is_ai_metadata %}