mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
Claude Code sends reasoning_effort "max" (its top level); OpenAI enum caps at "xhigh" and rejects "max" with HTTP 400 "max effort not support". applyFormat case "openai" now clamps "max"->"xhigh" before assigning body.reasoning_effort; other levels pass through unchanged. Add regression test covering client output_config.effort, direct reasoning_effort, passthrough of xhigh/high, and budget_tokens capping. Co-authored-by: Cursor <cursoragent@cursor.com>