Separate model reasoning selections and reduce agent notification noise
This commit is contained in:
@@ -268,7 +268,7 @@ impl CrosscheckReviewer {
|
||||
|
||||
let effective_model = config.model.unwrap_or(model_id);
|
||||
|
||||
let request_body = serde_json::json!({
|
||||
let mut request_body = serde_json::json!({
|
||||
"model": effective_model,
|
||||
"messages": [
|
||||
{
|
||||
@@ -286,6 +286,10 @@ impl CrosscheckReviewer {
|
||||
"stream": false
|
||||
});
|
||||
|
||||
if let Some(effort) = config.reasoning_effort {
|
||||
request_body["reasoning_effort"] = effort.into();
|
||||
}
|
||||
|
||||
// Use a non-streaming request by calling the same endpoint but with stream: false
|
||||
let url = format!("{}/chat/completions", config.base_url.trim_end_matches('/'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user