feat(models): sunset tiers for models mirroring blocks (legacy amber / deprecated red)#5805
Conversation
… / deprecated red
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview User-facing behavior: API: Reviewed by Cursor Bugbot for commit 7441030. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThis PR adds two-tier lifecycle handling for sunset models. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (3): Last reviewed commit: "fix(copilot): exclude retired models fro..." | Re-trigger Greptile |
|
@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 770fb4d. Configure here.
|
@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 7441030. Configure here.
Summary
Follow-up to the block sunset tiers (#5793). Gives models the same two-tier lifecycle.
ModelDefinition.sunset: { status: 'legacy' | 'deprecated' }— identical shape toBlockConfig.sunset; replaces the olddeprecated: boolean.deprecated(red — provider has retired them, API calls fail) and 19legacy(amber — superseded but still callable). The 33 were verified against each provider's live retirement docs (xAI grok-3/4 gen, Bedrock llama-3.x, Anthropic 4-0/sonnet-4-0/3-haiku, Google/Vertex gemini-2.0, Groq, Mistral, Cerebras, DeepSeek).deprecated) models are hidden from the model picker (getModelOptions) but stayisKnownModelId, so existing pinned workflows still validate.amazon.nova-2-pro-v1:0,mistral.mistral-large-2411-v1:0).Type of Change
Testing
Tested manually.
bun run lint:check,check:api-validation:strict,providers/models.test.ts(29), and apptscall pass.Checklist