Skip to content

chore: update model deprecation dates#1489

Open
rcogal wants to merge 4 commits intomainfrom
chore/deprecate-models-jan-2026
Open

chore: update model deprecation dates#1489
rcogal wants to merge 4 commits intomainfrom
chore/deprecate-models-jan-2026

Conversation

@rcogal
Copy link
Collaborator

@rcogal rcogal commented Jan 23, 2026

Summary

Update deprecation and deactivation dates for retiring models based on official provider announcements.

Model Deprecation Summary

Model Provider deprecatedAt deactivatedAt
gpt-4o-mini Azure 2026-01-09 2026-03-31
gemini-2.0-flash google-ai-studio, google-vertex 2026-01-22 2026-03-31
gemini-2.0-flash-lite google-ai-studio, google-vertex 2026-01-22 2026-03-31
gemini-2.5-flash-image-preview google-ai-studio, google-vertex 2025-12-04 2026-01-15
claude-3-5-haiku-20241022 anthropic 2025-12-19 2026-02-19
grok-3-mini xai 2026-01-30 2026-02-28
grok-2-vision-1212 xai 2026-01-30 2026-02-28

Sources

Test plan

  • Verify pnpm build passes
  • Confirm deprecated models show correct status in UI

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added deprecation and deactivation timestamps to multiple AI model configurations (e.g., Azure GPT-4o Mini, Grok-3 Mini, several Google models) so users can see planned deprecation and removal dates.
  • Updates
    • Corrected the deprecation date for one Claude model entry to an earlier, accurate date.

@rcogal rcogal requested a review from steebchen January 23, 2026 15:49
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 23, 2026

Walkthrough

Adds deprecatedAt and deactivatedAt Date fields to multiple provider model configuration objects across Google, OpenAI, and XAI model files, and adjusts one deprecatedAt timestamp in Anthropic models. No behavioral or structural logic changes.

Changes

Cohort / File(s) Summary
Google models
packages/models/src/models/google.ts
Added deprecatedAt and deactivatedAt (Date) to multiple Gemini/provider entries (various gemini-2.5 / gemini-2.0 variants) with explicit dates (e.g., 2025-12-04, 2026-01-15, 2026-03-31).
OpenAI models
packages/models/src/models/openai.ts
Added deprecatedAt and deactivatedAt (Date) to the Azure gpt-4o-mini provider entry with dates (e.g., 2026-01-23, 2026-03-31).
Anthropic models
packages/models/src/models/anthropic.ts
Adjusted deprecatedAt timestamp for claude-3-5-haiku from 2026-01-21 to 2025-12-19; no other changes.
XAI models
packages/models/src/models/xai.ts
Added deprecatedAt and deactivatedAt (Date) to the grok-3-mini provider entry with explicit timestamps.
Gateway tests
apps/gateway/src/models/models.spec.ts
Test updated to request models with include_deactivated=true for the gemini-2.5-flash-image-preview model endpoint call.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • steebchen
  • kmk142789420-stack
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: update model deprecation dates' directly and clearly summarizes the main change—updating deprecation and deactivation dates across multiple model provider configurations.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/deprecate-models-jan-2026

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@packages/models/src/models/google.ts`:
- Around line 663-664: The deprecation timeline is inverted for the Google model
entries: the deprecatedAt (new Date("2026-01-23")) is after deactivatedAt (new
Date("2026-01-15")), which violates the expected deprecatedAt <= deactivatedAt
ordering; locate the object(s) that set the deprecatedAt and deactivatedAt
properties (look for the entries with property names deprecatedAt and
deactivatedAt in packages/models/src/models/google.ts, including the second
occurrence around lines noted in the comment) and fix by making deprecatedAt
on-or-before deactivatedAt (e.g., swap the two dates or adjust deprecatedAt to
"2026-01-15" or deactivatedAt to "2026-01-23" as appropriate for the true
timeline).

rcogal and others added 2 commits February 4, 2026 22:51
- Gemini 2.5 Flash Image Preview: deactivated Jan 15, 2026
- Gemini 2.0 Flash & Flash Lite: deactivated Mar 31, 2026
- Azure GPT-4o Mini: deactivated Mar 31, 2026

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- google: fix gemini-2.0-flash deprecatedAt to 2026-01-22
- google: fix gemini-2.0-flash-lite deprecatedAt to 2026-01-22
- google: add deprecatedAt 2025-12-04 for gemini-2.5-flash-image-preview
- openai: fix azure gpt-4o-mini deprecatedAt to 2026-01-09
- anthropic: fix claude-3-5-haiku-20241022 deprecatedAt to 2025-12-19
- xai: add deprecation for grok-3-mini (2026-01-30 / 2026-02-28)
- xai: update grok-2-vision-1212 deprecation (2026-01-30 / 2026-02-28)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rcogal rcogal force-pushed the chore/deprecate-models-jan-2026 branch from 9e30f1c to b14bedc Compare February 4, 2026 14:52
@rcogal rcogal changed the title chore: deprecate retiring models chore: update model deprecation dates Feb 4, 2026
Keep original dates (2025-08-08 / 2025-09-15) for grok-2-vision-1212
as they were previously set by Luca.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
webSearch: true,
webSearchPrice: 0.01, // $10 per 1000 searches
deprecatedAt: new Date("2026-01-21"),
deprecatedAt: new Date("2025-12-19"),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this date is coming from their changelog

The gemini-2.5-flash-image-preview model is now deactivated (2026-01-15),
so the test needs to explicitly request deactivated models.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

test("GET /v1/models should include proper output modalities for gemini-2.5-flash-image-preview", async () => {
const res = await app.request("/v1/models");
const res = await app.request("/v1/models?include_deactivated=true");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@steebchen @smakosh Can you check this please if this change is OK?

The test is looking for gemini-2.5-flash-image-preview model and expects it to be defined. However, since this model now has deactivatedAt: 2026-01-15 (which is in the past - we're on 2026-02-04), the model is likely being filtered out by default. To fix it, need to add this filter include_deactivated

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue happened for gemini-2.5-flash-image-preview earlier

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah good yeah that's the correct fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants