Skip to content

Fix deprecated Gemini image model references#783

Open
grantf04 wants to merge 1 commit into
Merit-Systems:masterfrom
grantf04:grantf04/fix-gemini-deprecated-image-models
Open

Fix deprecated Gemini image model references#783
grantf04 wants to merge 1 commit into
Merit-Systems:masterfrom
grantf04:grantf04/fix-gemini-deprecated-image-models

Conversation

@grantf04
Copy link
Copy Markdown

@grantf04 grantf04 commented May 9, 2026

Fixes #634
/claim #634

Summary

  • remove retired gemini-2.0-flash-preview-image-generation and gemini-2.5-flash-image-preview from the TypeScript SDK Gemini model union/list
  • drop the removed 2.0 image model from the Gemini provider smoke-test skip list
  • update the Next image template to call the current gemini-2.5-flash-image model

Verification

  • pnpm install (repo prepare build completed successfully; the example postinstall has an existing swallowed npm dedupe workspace-protocol warning)
  • pnpm -C packages/sdk/ts run type-check
  • pnpm --filter @merit-systems/echo-typescript-sdk run build
  • pnpm -C packages/sdk/ts run test -- --runInBand
  • pnpm 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

Note: templates/next-image is not included in pnpm-workspace.yaml, so pnpm -C templates/next-image run build cannot run from the root install because next is not installed for that standalone template.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 9, 2026

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

A member of the Team first needs to authorize it.

@grantf04
Copy link
Copy Markdown
Author

grantf04 commented May 9, 2026

The failing Vercel statuses are fork-deploy authorization prompts from the Merit Systems team, not code/test failures. Local verification from the PR body is green for the affected SDK path: install/prepare build, SDK type-check, SDK build, SDK tests, and Prettier check all completed locally.

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