Skip to content

fix: remove deprecated gemini image generation models (#634)#761

Open
ledgerpilot wants to merge 5 commits intoMerit-Systems:masterfrom
ledgerpilot:ledgerpilot/fix-634
Open

fix: remove deprecated gemini image generation models (#634)#761
ledgerpilot wants to merge 5 commits intoMerit-Systems:masterfrom
ledgerpilot:ledgerpilot/fix-634

Conversation

@ledgerpilot
Copy link
Copy Markdown

Closes #634

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

Changes

  • packages/sdk/ts/src/supported-models/chat/gemini.ts: Removed deprecated model IDs from GeminiModel union type and GeminiModels array
  • templates/next-image/src/app/api/edit-image/google.ts: Updated model reference to stable gemini-2.5-flash-image
  • templates/next-image/src/app/api/generate-image/google.ts: Updated model reference to stable gemini-2.5-flash-image

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 8, 2026

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

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 8, 2026

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