Files
yinghuoapi/backend/internal
erio 49233ec26a fix(antigravity): auto-fix max_tokens <= budget_tokens causing 400 error
When extended thinking is enabled, Claude API requires max_tokens >
thinking.budget_tokens. If misconfigured, this auto-adjusts max_tokens
to budget_tokens + 1000 instead of returning a 400 error.

- Add ensureMaxTokensGreaterThanBudget helper function
- Extract Gemini25FlashThinkingBudgetLimit constant (24576)
- Log adjustment for debugging
2026-02-07 11:49:03 +08:00
..
2026-02-05 12:49:43 +08:00
2026-02-03 15:36:17 +08:00
2026-02-06 11:33:45 +08:00
2026-02-06 11:33:45 +08:00