Skip to content

fix: remove deprecated Gemini image generation models#750

Open
Manishcs076 wants to merge 1 commit intoMerit-Systems:masterfrom
Manishcs076:fix/remove-deprecated-gemini-models
Open

fix: remove deprecated Gemini image generation models#750
Manishcs076 wants to merge 1 commit intoMerit-Systems:masterfrom
Manishcs076:fix/remove-deprecated-gemini-models

Conversation

@Manishcs076
Copy link
Copy Markdown

Summary

Removes deprecated Gemini models per Google's deprecation notice.

Fixes #634

Models Removed

  • gemini-2.0-flash-preview-image-generation
  • gemini-2.5-flash-image-preview

Changes

  • SDK (packages/sdk/ts/src/supported-models/chat/gemini.ts): Removed from type union and model list
  • Templates (templates/next-image/): Updated generate-image and edit-image to use stable gemini-2.5-flash-image
  • Tests (packages/tests/provider-smoke/): Removed deprecated model from smoke test blacklist

All unit tests passing. 4 files changed, 2 insertions, 17 deletions.

Removes deprecated models per Google's deprecation notice:
- gemini-2.0-flash-preview-image-generation
- gemini-2.5-flash-image-preview

Changes:
- SDK: removed from GeminiChatModelId type union and model list
- Templates: updated next-image to use stable gemini-2.5-flash-image
- Tests: removed deprecated model from smoke test blacklist

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

vercel bot commented Mar 27, 2026

@Manishcs076 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