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:
qpismont committed 2026-06-03 20:51:21 +00:00
1 parent de81232201
commit cd5c5b9478
7 files changed
+46 -446

No files matched your search

+11 -1
View File
@@ -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\": [