fix(models): correct model catalog data and Gemini thinking-config wire format#5559
Conversation
…re format - OpenAI: remove fabricated 'max' reasoning-effort value from gpt-5.6 family - Anthropic: fix claude-sonnet-4-6 maxOutputTokens (64k -> 128k); remove 3 fully retired models (claude-opus-4-0, claude-sonnet-4-0, claude-3-haiku-20240307); fix budget_tokens/max_tokens clamp that could send budget_tokens >= max_tokens for claude-opus-4-1 at its default thinking level - Google/Vertex: un-deprecate gemini-3-flash-preview (no shutdown date announced); add thinking capability to gemini-2.5-pro/flash/flash-lite (google + vertex) - Fix gemini/core.ts to send thinkingBudget (not thinkingLevel) for Gemini 2.5-series models, which reject thinkingLevel entirely - only Gemini 3.x supports it - Bedrock: mark claude-opus-4-1 deprecated per AWS's own Bedrock lifecycle schedule (Legacy since Jul 8 2026, separate from Anthropic's direct-API date)
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Anthropic extended-thinking requests now shrink Gemini sends Catalog / UI metadata: Reviewed by Cursor Bugbot for commit 1103ca5. Configure here. |
Greptile SummaryThis PR updates model catalog data and provider thinking configuration. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (4): Last reviewed commit: "chore(models): tighten inline comments i..." | Re-trigger Greptile |
…removing Greptile caught a real backward-compat regression: fully removing claude-opus-4-0/claude-sonnet-4-0/claude-3-haiku-20240307 dropped them from getHostedModels()/shouldBillModelUsage(), so saved workflows still referencing them would fail on a missing-API-key error instead of Anthropic's actual "model retired" error. deprecated:true isn't consumed by the model picker (only copilot's serializer reads it), so restoring them this way costs nothing on hiding from new selection while preserving hosted-key resolution for existing references.
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit ec43215. Configure here.
…2.5 disable-thinking gap Found during a final per-model audit round with independent 2-3 source verification on every changed model: - gpt-5.6-sol: restore 'max' reasoning-effort value. Multiple independent sources (OpenAI's own model-guidance docs page, launch announcement, and press coverage) confirm 'max' is a real, newly-launched value exclusive to Sol - not fabricated as originally assessed. Terra and Luna correctly do NOT get 'max' (confirmed Sol-exclusive), so they're unchanged. - gemini-2.5-flash / gemini-2.5-flash-lite (google + vertex): selecting 'none' for thinking level was sending no thinkingConfig at all, which falls back to the API's dynamic default (thinking stays ON for flash) - not actually disabling it, even though both models explicitly support thinkingBudget:0. Now sends an explicit budget of 0 for these two models specifically (gemini-2.5-pro is correctly excluded - it cannot disable thinking at all, floor is 128 not 0).
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 6b4e02a. Configure here.
Trim verbose multi-line comments to single concise lines and remove duplication with the TSDoc already on the ANTHROPIC_MIN_BUDGET_TOKENS/ ANTHROPIC_THINKING_OUTPUT_HEADROOM constants. No behavior change - verified against the full test suite (811 files, 11141 tests, all passing).
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 1103ca5. Configure here.
Summary
/validate-modelsweep across OpenAI, Anthropic, and Gemini — found and fixed real data bugs, not just cosmetic ones'max'reasoning-effort value from the gpt-5.6 family (not a documented value, would 400 on selection)claude-sonnet-4-6maxOutputTokens (was 64k, docs say 128k); removed 3 models that are fully retired per Anthropic's own deprecations page (claude-opus-4-0,claude-sonnet-4-0,claude-3-haiku-20240307— all past their retirement dates, requests would fail); fixed abudget_tokens >= max_tokensbug that would 400 onclaude-opus-4-1at its default thinking levelgemini-3-flash-preview(no shutdown date actually announced); added thethinkingcapability togemini-2.5-pro/flash/flash-lite(google + vertex), which were missing it entirely despite Google supporting thinking control for themgemini/core.tsto sendthinkingBudget(notthinkingLevel) for Gemini 2.5-series models — confirmed via multiple independent sources that 2.5-series rejectsthinkingLeveloutright and only Gemini 3.x supports it, so the new capability above would have 400'd without thisclaude-opus-4-1deprecated per AWS's own Bedrock lifecycle page (Legacy since Jul 8 2026 — a separate schedule from Anthropic's direct API)Type of Change
Testing
/validate-modelpass on every single modified model, one at a time, across all affected providersmapToThinkingBudgetgemini/core.ts fixproviders/test suite: 753/753 passingbun run type-checkandbun run lintclean on all touched filesChecklist