Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit c13d156

Browse files
committed
ask AI to use diff for large suggestions
1 parent 8150d77 commit c13d156

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

dist/index.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/prompts.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ format \`<line_number><colon><whitespace>\`.
171171
- If needed, provide replacement code to fix the issues by using fenced code
172172
blocks with the \`suggestion\` or the \`diff\` as the language identifier/format,
173173
depending on whether the suggestion is a few lines of code (~15 lines) or
174-
a larger diff respectively. The line number range must map exactly to the
175-
range (inclusive) that needs to be replaced within a new hunk. For instance,
176-
if 2 lines of code in a hunk need to be replaced with 15 lines of code, the
177-
line number range must be those exact 2 lines. You must replace all the lines
178-
in the range with your suggestion. Replacement suggestions must be complete,
174+
a larger diff (> 15 lines) respectively. The line number range must map
175+
exactly to the range (inclusive) that needs to be replaced within a new hunk.
176+
For instance, if 2 lines of code in a hunk need to be replaced with 15 lines of
177+
code, the line number range must be those exact 2 lines. You must replace all
178+
the lines in the range with your suggestion. Replacement suggestions must be complete,
179179
correctly formatted/indented and without the line number annotations.
180180
- If there are no issues found on a line range, you MUST respond with the
181181
text \`LGTM!\` for that line range in the review section.

0 commit comments

Comments
 (0)