Skip to content

Remove deprecated Gemini models (gemini-2.0-flash-preview-image-generation, gemini-2.5-flash-image-preview)#772

Open
tarai-dl wants to merge 1 commit intoMerit-Systems:masterfrom
tarai-dl:rn/remove-deprecated-gemini-models
Open

Remove deprecated Gemini models (gemini-2.0-flash-preview-image-generation, gemini-2.5-flash-image-preview)#772
tarai-dl wants to merge 1 commit intoMerit-Systems:masterfrom
tarai-dl:rn/remove-deprecated-gemini-models

Conversation

@tarai-dl
Copy link
Copy Markdown

Summary

Removes the deprecated Gemini models gemini-2.0-flash-preview-image-generation and gemini-2.5-flash-image-preview as they are being retired by Google.

Reference: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-0-flash

Fixes #634

Changes

  • SDK: Removed both deprecated models from the GeminiModel type union and GeminiModels array in packages/sdk/ts/src/supported-models/chat/gemini.ts
  • Templates: Updated templates/next-image to use gemini-2.5-flash-image (stable) as the replacement for image generation and editing
  • Tests: Removed gemini-2.0-flash-preview-image-generation from the test blacklist since the model no longer exists in the SDK

Replacement Model

The templates now use gemini-2.5-flash-image which is the stable replacement model for image generation tasks.

Remove gemini-2.0-flash-preview-image-generation and gemini-2.5-flash-image-preview
as they are being retired by Google.

- Remove model entries from SDK type union and models array
- Update templates to use gemini-2.5-flash-image as replacement
- Remove deprecated model from test blacklist

Fixes Merit-Systems#634
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 19, 2026

@tarai-dl 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