mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2024-11-26 22:19:03 +00:00
improve the prompt silghtly
This commit is contained in:
parent
cb3b637f77
commit
8995085d53
2
dist/index.js
vendored
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
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
|
||||
|
Loading…
Reference in New Issue
Block a user