fix(api): apply declared reasoning effort to Responses #6194
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 334 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.348
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6194"
general
weight: 0.35
Jackmeson1
Fixes #6193
Direct
/v1/responsesrequests now use the selected replica’s reasoning-effort declaration. Models without a declaration still return 200 for a named effort and omit it from generation. This includes 159 of 171 built-in families, among themqwen3in the Xinference Codex example.| Physical
/v1/responsesrequest | Before | After ||---|---|---|
| Declared effort or alias | 200, requested value echoed | 200, requested value echoed and normalized value forwarded |
| Name outside a family’s declared values | 200, effort ignored | 400 before generation |
| Explicit name on a family without a declaration | 200, effort ignored | 200, effort ignored |
| Non-null, non-string effort | 200, effort ignored | 400 naming
reasoning.effort|On GLM-5.3, the shared Chat normalizer maps
mediumto template efforthighin bothconfigandraw_params, while Responses echoesmedium. The direct route skips the replica-description lookup for omitted or null effort and for summary alone. The string"none"follows the family declaration. A replica that reports it is still loading returns 503 withRetry-After: 30.Virtual models ignore named effort as before this PR. Responses echoes
reasoningand omitsreasoning_effortfrom the Chat payload sent to Token Router, including for GLM-5.3 withxhigh. A non-null, non-string effort returns 400 before routing. Routed effort is left to a separate change covering both version boundaries.Tests
reasoning, and reached the recording Qwen3 model once. Effort was absent on both HTTP hops and from both model argument dictionaries.de4f00d0and also failed on9339fc6f.pong, echoedmedium, and recordedhighin both model argument dictionaries for JSON and SSE. They used raw HTTP with OpenAI SDK 1.40.0 installed andclient.responses.createwith SDKs 1.66.3 and 3.31.0. Codex CLI and real-backend inference were not run.AI disclosure: this was prepared with AI assistance (Claude Code with Claude Fable 5.2, and OpenAI Codex with GPT-6.2).