feat(model): ✨ Add reasoning content constrained capability - #146
Conversation
AI Code Review SummaryPR: #146 (feat(model): ✨ Add reasoning content constrained capability) Overall AssessmentNo blocking issue was detected in the reviewed diff; keep focused regression testing before merge. Major Findings by SeverityNo major issues identified from the reviewed diff. Actionable Suggestions
Potential Risks
Test Suggestions
File-Level Coverage Notes
Inline Downgraded Items (processed but not inline)
Coverage Status
Uncovered list:
No-patch covered list:
Runtime/Budget
|
| } | ||
|
|
||
| if let Some(compat) = default_openai_compatible_compat(&role.provider_type) { | ||
| if let Some(mut compat) = default_openai_compatible_compat(&role.provider_type) { |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
|
|
||
| if let Some(compat) = default_openai_compatible_compat(&role.provider_type) { | ||
| if let Some(mut compat) = default_openai_compatible_compat(&role.provider_type) { | ||
| if let Some(true) = role.reasoning_content_constrained { |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
| overrides.insert("embedding".to_string(), serde_json::Value::Bool(true)); | ||
| } | ||
|
|
||
| if model.reasoning_content_constrained { |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
| maxOutputTokens: model.maxOutputTokens ?? null, | ||
| supportsImageInput: capabilities.vision, | ||
| supportsReasoning: capabilities.reasoning, | ||
| reasoningContentConstrained: capabilities.reasoningContentConstrained ?? null, |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
…del resolution Add support for the `reasoningContentConstrained` capability override, ensuring it is correctly propagated from model metadata through to the runtime model plan. This flag indicates whether a model's reasoning output is constrained (e.g., for compatible providers where the model handles reasoning natively). - Introduced `catalog_capability_overrides` logic to include `reasoningContentConstrained` when set to true - Updated `resolve_runtime_model_role` to set the compat flag based on model metadata - Added corresponding frontend logic to propagate the override from capability overrides to the run plan - Covered all paths with unit tests for Rust and TypeScript layers Closes: #458
| @@ -54,7 +54,7 @@ keepawake = "0.6" | |||
| portable-pty = "0.9" | |||
There was a problem hiding this comment.
Automated review completed for this PR diff. No concrete inline issue was selected after aggregation.
Summary
reasoningContentConstrainedmodel capability through settings and run model plan DTOs.tiycoreto0.2.2-rc.26042811and sync Cargo.lock.Test Plan
cargo check --manifest-path src-tauri/Cargo.toml🤖 Generated with TiyCode