Skip to content

Remove deprecated Gemini preview image models#741

Open
kira-autonoma wants to merge 1 commit intoMerit-Systems:masterfrom
kira-autonoma:fix/handle-gemini-deprecation
Open

Remove deprecated Gemini preview image models#741
kira-autonoma wants to merge 1 commit intoMerit-Systems:masterfrom
kira-autonoma:fix/handle-gemini-deprecation

Conversation

@kira-autonoma
Copy link

Summary

  • Removed gemini-2.0-flash-preview-image-generation and gemini-2.5-flash-image-preview from the SDK type union (GeminiModel) and the GeminiModels pricing array
  • Updated next-image template to use stable gemini-2.5-flash-image instead of deprecated gemini-2.5-flash-image-preview for both generate and edit handlers
  • Removed gemini-2.0-flash-preview-image-generation from the smoke test blacklist since it no longer exists in the model list

Closes #634

Test plan

  • Verify TypeScript compilation passes with no type errors referencing removed models
  • Confirm next-image template image generation and editing work with gemini-2.5-flash-image
  • Run smoke tests to ensure no regressions from model removal

🤖 Generated with Claude Code

Remove `gemini-2.0-flash-preview-image-generation` and
`gemini-2.5-flash-image-preview` from the SDK type definitions,
model pricing list, and smoke test blacklist. Update templates
to use the stable `gemini-2.5-flash-image` replacement.

Closes Merit-Systems#634

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@vercel
Copy link
Contributor

vercel bot commented Mar 15, 2026

Someone is attempting to deploy a commit to the Merit Systems Team on Vercel.

A member of the Team first needs to authorize it.

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.

Handle Gemini Deprecation

1 participant