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> |
||
|---|---|---|
| .. | ||
| chunk.js | ||
| finishReason.js | ||
| image.js | ||
| json.js | ||
| message.js | ||
| modality.js | ||
| paramSupport.js | ||
| prefetch.js | ||
| reasoning.js | ||
| thinking.js | ||
| thinkingUnified.js | ||
| toolCall.js | ||
| usage.js | ||