Skip to content

Handle Gemini Deprecation #634

Closed as not planned
Closed as not planned

Description

@sragss

gemini-2.0-flash-preview-image-generation and gemini-2.5-flash-image-preview are being retired.

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

Remove these from the docs, the router and the SDK.

Activity

  1. Trynax commented on Oct 28, 2025

    @Trynax
    Contributor

    /attempt #634

  2. 0xOlivanode commented on Dec 2, 2025

    @0xOlivanode

    Hey @sragss please could you assign this issue to me?

  3. added a commit that references this issue on Feb 16, 2026
    2eab635
  4. 285729101 commented on Feb 18, 2026

    @285729101

    Addressed this in #720 — removed the deprecated preview image models and updated the defaults to their stable replacements.

  5. added a commit that references this issue on Mar 15, 2026
    2242b9f
  6. added 2 commits that reference this issue on Mar 27, 2026
    cf7fbac
    c3b16aa
  7. jaysu66 commented on Apr 7, 2026

    @jaysu66

    Looked at the affected files — removed both deprecated models from the SDK type union and GeminiModels array, updated the next-image template to gemini-2.5-flash-image, and cleaned up the test blacklist.

    /attempt #634

  8. ledgerpilot commented on Apr 8, 2026

    @ledgerpilot

    /attempt #634

  9. shogun444 commented on Apr 10, 2026

    @shogun444

    hello @sragss,
    can i please work on this issue?

  10. added 2 commits that reference this issue on Apr 18, 2026
    330b635
    e633652
  11. denishpt commented on Apr 23, 2026

    @denishpt

    Submitted a fix in PR #774.

    Approach: 1. Clone and run pnpm install. 2. Use ripgrep to find all occurrences of gemini-2.0-flash-preview-image-generation and gemini-2.5-flash-image-preview across the monorepo. 3. Remove entries from router model registry/pricing tables, SDK model enums/types/exports, and any docs/MDX files. 4. Upda

    Changes: 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

  12. grantf04 commented on May 9, 2026

    @grantf04

    /attempt #634

    I found the deprecated Gemini image model IDs still present on current master. I am submitting a focused fix that removes the retired IDs from the SDK model list/test skip list and updates the Next image template to use gemini-2.5-flash-image.

  13. clawdvader commented on May 11, 2026

    @clawdvader

    /attempt #634

    I am removing the two retired Gemini image model IDs from the SDK/router-facing supported model list, updating the image template to use the stable gemini-2.5-flash-image model, and cleaning the smoke-test blacklist so it no longer references a removed model.

  14. LogicLeapLtd commented on May 12, 2026

    @LogicLeapLtd

    /attempt #634

    Planning to remove gemini-2.0-flash-preview-image-generation and gemini-2.5-flash-image-preview from the GeminiModel type, GeminiModels array, and update the next-image template routes to use the GA model gemini-2.5-flash-image.

  15. richboyneedcash commented on May 12, 2026

    @richboyneedcash

    /attempt #634

    I am submitting a focused cleanup for the remaining retired Gemini image model references on current master: remove both deprecated IDs from the TypeScript SDK supported model type/list, remove the retired generateText blacklist entry, and update the next-image Google generate/edit routes to use gemini-2.5-flash-image. I will keep the diff limited to those four files and include rg plus type-check/build evidence.

  16. richboyneedcash commented on May 13, 2026

    @richboyneedcash

    Submitted PR #801 for this focused Gemini cleanup: #801

    Scope is limited to removing retired Gemini image model IDs from the TypeScript SDK supported model list, cleaning the related smoke-test blacklist entry, and updating the Next image template Google generate/edit routes to use the stable model.

    Verification is listed in the PR body, including rg for retired IDs, SDK type-check/build, Prettier check, and a template TypeScript check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    $100MeritTag for Merit bounties.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions