Use reqwest 0.12 with rustls-tls and add timeouts
Also improve review prompt with line calculation instructions, switch feedback to French, and enable reasoning for OpenRouter.
This commit is contained in:
+11
-1
@@ -20,7 +20,17 @@ pub const REVIEW_PROMPT: &str = "
|
||||
\"{diff}\"
|
||||
|
||||
Please review the code changes and provide feedback.
|
||||
Return your feedback with only this json format, reviews must contain each review (filename field must contain the full path with extension) and comment msut contain a final summary:
|
||||
|
||||
IMPORTANT — How to compute the line number:
|
||||
The diff is in unified format. Each hunk starts with a header like:
|
||||
`@@ -old_start,old_count +new_start,new_count @@`
|
||||
The `line` field must be the line number in the **new** version of the file.
|
||||
To find it, start at `new_start`, then count every context line (no prefix)
|
||||
and every added line (prefixed with `+`) — skip removed lines (prefixed with `-`).
|
||||
The line number increments by 1 for each context or added line.
|
||||
|
||||
Return your feedback, in french, with only this json format, reviews must contain each review
|
||||
(filename field must contain the full path with extension) and comment must contain a final summary:
|
||||
|
||||
{
|
||||
\"reviews\": [
|
||||
|
||||
Reference in New Issue
Block a user