diff --git a/crates/tui/src/client.rs b/crates/tui/src/client.rs index aa9cad17..ed86adc9 100644 --- a/crates/tui/src/client.rs +++ b/crates/tui/src/client.rs @@ -917,17 +917,14 @@ pub(super) fn apply_reasoning_effort( }, "low" | "minimal" | "medium" | "mid" | "high" | "" => match provider { // DeepSeek compatibility: low/medium both map to high - ApiProvider::Deepseek - | ApiProvider::DeepseekCN - | ApiProvider::Sglang => { + ApiProvider::Deepseek | ApiProvider::DeepseekCN | ApiProvider::Sglang => { body["reasoning_effort"] = json!("high"); body["thinking"] = json!({ "type": "enabled" }); } // OpenRouter/Novita: pass through the actual user-chosen value. // OpenRouter's unified scale is none/minimal/low/medium/high/xhigh; // DeepSeek models hosted there accept those directly. - ApiProvider::Openrouter - | ApiProvider::Novita => { + ApiProvider::Openrouter | ApiProvider::Novita => { let value = match normalized.as_str() { "low" | "minimal" => "low", "medium" | "mid" => "medium", @@ -957,14 +954,11 @@ pub(super) fn apply_reasoning_effort( } }, "xhigh" | "max" | "highest" => match provider { - ApiProvider::Deepseek - | ApiProvider::DeepseekCN - | ApiProvider::Sglang => { + ApiProvider::Deepseek | ApiProvider::DeepseekCN | ApiProvider::Sglang => { body["reasoning_effort"] = json!("max"); body["thinking"] = json!({ "type": "enabled" }); } - ApiProvider::Openrouter - | ApiProvider::Novita => { + ApiProvider::Openrouter | ApiProvider::Novita => { body["reasoning_effort"] = json!("xhigh"); body["thinking"] = json!({ "type": "enabled" }); }