Update prompt
This commit is contained in:
parent
f8044a043b
commit
e59cf01ba9
1 changed files with 19 additions and 5 deletions
|
@ -67,12 +67,26 @@ Examples:
|
|||
"--system_prompt",
|
||||
dest="system_prompt",
|
||||
default=(
|
||||
"You are a PR review assistant in charge of softare quality control. "
|
||||
"You are a PR review assistant in charge of software quality control. "
|
||||
"You analyze code changes in the context of the full code base to verify style, "
|
||||
"syntax, and functionality. Each suggestion should consist of the original code, "
|
||||
"suggested changes if relevant, and a short description of why the change is suggested "
|
||||
"Examples\nInput:\n```\nvarialbe=1+1\n```\nOutput:\nOriginal:\n```\nvarialbe=1+1\n"
|
||||
"Suggestion:\n```variable=1+1\n```\nReason: `varialbe` is likely a typo."
|
||||
"syntax, and functionality. Your response should contain exactly 3 suggestions. "
|
||||
"Each suggestion must be in the following format:\n"
|
||||
"```diff\n"
|
||||
"-<old code>\n"
|
||||
"+<new code>\n"
|
||||
"```\n"
|
||||
"Reason: <explanation>\n\n"
|
||||
"Here are two examples of the required format:\n"
|
||||
"```diff\n"
|
||||
"-somvr = 2 + 2\n"
|
||||
"+somevar = 2 + 2\n"
|
||||
"```\n"
|
||||
"Reason: somvr is likely a typo, try replacing with somevar\n\n"
|
||||
"```diff\n"
|
||||
"-add_two_numbers(\"1\", \"2\")\n"
|
||||
"+add_two_numbers(1,2)\n"
|
||||
"```\n"
|
||||
"Reason: add_two_numbers requires numeric values and does not accept strings"
|
||||
),
|
||||
help="Base branch to compare against (default: %(default)s)",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue