Skip to content

fix: remove deprecated gemini-2.5-flash-image-preview from model enum#13128

Closed
huntcsg wants to merge 1 commit intomasterfrom
vertexai-deprecated-model
Closed

fix: remove deprecated gemini-2.5-flash-image-preview from model enum#13128
huntcsg wants to merge 1 commit intomasterfrom
vertexai-deprecated-model

Conversation

@huntcsg
Copy link
Copy Markdown
Contributor

@huntcsg huntcsg commented Mar 24, 2026

Problem

Google removed the gemini-2.5-flash-image-preview model from Vertex AI, causing 404 errors for users selecting it.

Fix

Remove the deprecated gemini_2_5_flash_image_preview enum value from GeminiImageModel, so new users only see the GA model gemini-2.5-flash-image.

Related

  • comfy-api PR adds a proxy sanitization rule so existing workflows/cached UIs still work

API Node PR Checklist

Scope

  • Is API Node Change

Pricing & Billing

  • Need pricing update
  • No pricing update

If Need pricing update:

  • Metronome rate cards updated
  • Auto‑billing tests updated and passing

QA

  • QA done
  • QA not required

Comms

  • Informed Kosinkadink

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 24, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b9bae32a-0fd6-4144-9555-0dd222dddf9f

📥 Commits

Reviewing files that changed from the base of the PR and between 2d4970f and 081a377.

📒 Files selected for processing (1)
  • comfy_api_nodes/nodes_gemini.py
💤 Files with no reviewable changes (1)
  • comfy_api_nodes/nodes_gemini.py

📝 Walkthrough

Walkthrough

This pull request removes the gemini_2_5_flash_image_preview enum member from the GeminiImageModel enumeration in the nodes_gemini.py file. The removed member had the string value "gemini-2.5-flash-image-preview". With this change, this model option is no longer available as a selectable choice in the model input dropdown for the GeminiImage node within any UI or schema that references this enumeration.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: removing a deprecated Gemini model from the enum.
Description check ✅ Passed The description is directly related to the changeset, explaining the problem, fix, and relevant context about the deprecated model removal.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

…s gone)

Google removed the gemini-2.5-flash-image-preview model from Vertex AI.
The proxy sanitizes existing requests to the GA model, and the older
GeminiImage node is now marked is_deprecated=True so users are steered
toward GeminiImage2 which uses current models.
@huntcsg huntcsg force-pushed the vertexai-deprecated-model branch from 081a377 to da8617f Compare March 24, 2026 02:49
@huntcsg huntcsg closed this Mar 24, 2026
@huntcsg huntcsg deleted the vertexai-deprecated-model branch March 24, 2026 02:52
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.

2 participants