Skip to content

fix: remove retired Gemini image models#801

Open
richboyneedcash wants to merge 1 commit into
Merit-Systems:masterfrom
richboyneedcash:codex/remove-retired-gemini-image-models
Open

fix: remove retired Gemini image models#801
richboyneedcash wants to merge 1 commit into
Merit-Systems:masterfrom
richboyneedcash:codex/remove-retired-gemini-image-models

Conversation

@richboyneedcash
Copy link
Copy Markdown

Summary

  • remove the retired gemini-2.0-flash-preview-image-generation and gemini-2.5-flash-image-preview IDs from the TypeScript SDK Gemini model type/list
  • update the next-image Google generate/edit handlers to use the stable gemini-2.5-flash-image model
  • remove the retired generateText smoke-test blacklist entry so the blacklist only contains models still present in the SDK list

Verification

  • rg -n "gemini-2\.0-flash-preview-image-generation|gemini-2\.5-flash-image-preview" . || true returns no matches
  • npx --yes pnpm@10.11.0 -C packages/sdk/ts run type-check
  • npx --yes pnpm@10.11.0 -C packages/sdk/ts run build
  • npx --yes pnpm@10.11.0 exec prettier --check packages/sdk/ts/src/supported-models/chat/gemini.ts packages/tests/provider-smoke/gemini-generate-text.test.ts templates/next-image/src/app/api/edit-image/google.ts templates/next-image/src/app/api/generate-image/google.ts
  • npx tsc --noEmit in templates/next-image after installing that non-workspace template with npm install --package-lock=false --legacy-peer-deps

/claim #634

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 12, 2026

@richboyneedcash 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.

1 participant