improve the prompt silghtly

This commit is contained in:
Ville Saukkonen 2023-03-23 00:42:28 +02:00
parent cb3b637f77
commit 8995085d53
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored

@ -97,7 +97,7 @@ function analyzeCode(parsedDiff) {
}
function createPrompt(file, chunk) {
return `
Review the following code changes in the file "${file.to}" and provide comments and suggestions ONLY if there is something to improve. If the code looks good, DO NOT return any text (leave the response completely empty)
Review the following code changes in the file "${file.to}" and provide comments and suggestions ONLY if there is something to improve, write the answer in Github markdown. If the code looks good, DO NOT return any text (leave the response completely empty)
${chunk.content}
${chunk.changes

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

@ -72,7 +72,7 @@ function createPrompt(file: File, chunk: Chunk): string {
return `
Review the following code changes in the file "${
file.to
}" and provide comments and suggestions ONLY if there is something to improve. If the code looks good, DO NOT return any text (leave the response completely empty)
}" and provide comments and suggestions ONLY if there is something to improve, write the answer in Github markdown. If the code looks good, DO NOT return any text (leave the response completely empty)
${chunk.content}
${chunk.changes