comfy generate: stale Gemini model enum and incomplete GPT Image 2 output/edit support
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 nano-banana fallback enum、通用结果提取、OpenAIImageEditRequest 以及请求 https://api.comfy.org/openapi.yml 的 refresh 命令开始。复现 schema、GPT Image 2 生成/编辑命令和 refresh 命令,然后检查相关 catalog 和 response 处理。完成的标准是:当前 Gemini 名称能够通过验证,b64_json 图像能够下载,编辑图像输入能够被接受,并且 refresh 使用可工作的 catalog endpoint。
由索引模型根据 Issue 内容生成。
描述
comfy generate: stale Gemini image model enum and incomplete GPT Image 2 output/edit support
Describe the bug
comfy generate does not currently expose or fully handle several image models that are available through the current ComfyUI Partner Nodes:
- The
nano-bananaadapter uses a fixed Gemini model enum. It accepts the legacygemini-3-pro-image-previewname, which the server resolves successfully togemini-3-pro-image, but it rejects the current stablegemini-3-pro-imagename and Nano Banana 2 (gemini-3.1-flash-image) before making a request. - GPT Image 2 generation is accepted by the server through
dalle --model gpt-image-2, but the response containsdata[].b64_json. The CLI reports that no image URLs were found and--downloaddoes not save the image. - The
dalle-editschema does not include animageinput, so GPT Image 2 editing cannot be submitted:--imageis rejected as an unknown flag. comfy generate refreshcurrently requestshttps://api.comfy.org/openapi.yml, which returns HTTP 404, so it cannot refresh the local catalog.
I also checked the current main branch. The Gemini fallback enum, URL-only generic result extraction, and OpenAIImageEditRequest without an image property are still present there.
To Reproduce
Environment:
comfy-cli 1.12.0
Python 3.12
macOS x86_64
Authentication: COMFY_API_KEY environment variable (no browser login)
Inspect the Nano Banana schema:
comfy generate schema nano-banana --json
The model enum is:
gemini-2.5-flash-image
gemini-2.5-flash-image-preview
gemini-3-pro-image-preview
Current stable model names are rejected locally:
comfy generate nano-banana \
--prompt "A blue ceramic cube on a white background" \
--model gemini-3-pro-image \
--json
comfy generate nano-banana \
--prompt "A blue ceramic cube on a white background" \
--model gemini-3.1-flash-image \
--json
Both return:
--model: '<model>' is not one of [...]
However, the legacy Pro name succeeds:
comfy generate nano-banana \
--prompt "A blue ceramic cube on a white background" \
--model gemini-3-pro-image-preview \
--json
The successful server response reports:
{
"modelVersion": "gemini-3-pro-image"
}
GPT Image 2 generation reaches the server successfully:
comfy generate dalle \
--model gpt-image-2 \
--prompt "A red glass sphere on a light gray background" \
--n 1 \
--quality low \
--size 1024x1024 \
--output_format png \
--download gpt-image-2.png
The command exits successfully but does not save the image:
No image URLs found in response. Pass --json to inspect.
--download requested but no image URLs found in response.
The JSON response uses data[].b64_json. Trying to force a URL does not work:
comfy generate dalle \
--model gpt-image-2 \
--prompt "A green glass sphere on a light gray background" \
--response_format url \
--download gpt-image-2.png
The API returns:
API error 400
Unknown parameter: 'response_format'.
GPT Image 2 editing is blocked by the local schema:
comfy generate dalle-edit \
--model gpt-image-2 \
--prompt "Replace the circle with a star" \
--image input.png \
--download edited.png
Result:
Unknown flag: '--image'.
Finally:
comfy generate refresh
returns:
Failed to fetch https://api.comfy.org/openapi.yml: 404 Not Found
Expected behavior
nano-bananashould accept the current Partner Node model identifiers, includinggemini-3-pro-imageandgemini-3.1-flash-image, or obtain the enum dynamically from the active catalog.--downloadshould decode and save OpenAIdata[].b64_jsonimage responses, similar to the existing Gemini inline-image decoder.dalle-editshould expose the required image input(s), and optional mask input where supported, so GPT Image 2 editing can be submitted.comfy generate refreshshould fetch the current authenticated/public OpenAPI catalog from a working endpoint.comfy generate list/schemashould reflect models currently supported by the official ComfyUI Partner Nodes.
Nice to have
- Terminal output
- Screenshots
Additional context
- Nano Banana Pro generation and image editing both succeeded when using
gemini-3-pro-image-preview; the response identified the actual model asgemini-3-pro-image. - No API keys, account identifiers, generated base64 payloads, or private URLs are included in this report.
- 主要语言
- Python
- 星标
- 1k
- 派生
- 176
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 87
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Comfy-Org/comfy-cli 的其他 Issue
-
test_file_utils umask tests assert against a umask the code never reads (import-time _UMASK), so they only pass on a 0o022 host可能已有人在做 @neverbiasu 于 10 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
Comfy-Org/comfy-cli#907 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 92/100
Comfy-Org/comfy-cli#781 · 1 条评论 ·
维护者通常 1 天内回复
-
`comfy launch --background` fails with FileNotFoundError when comfy-cli is invoked by path可能已有人在做 @RaphaelFakhri 于 42 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
Comfy-Org/comfy-cli#691 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
Comfy-Org/comfy-cli#670 · 2 条评论 ·
维护者通常 1 天内回复
查看 Comfy-Org/comfy-cli 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 65/100
StevenBlack/hosts#3299 ·
-
`garak --report` overwrites the input report when its name has no ".report"可能已有人在做 @0z5a 今天认领。 未关闭needs-triage
难度 2/5 半天 新手友好度 72/100
维护者通常 2 天内回复
-
plot_graph crashes when a mesh node has no m2m edge可能已有人在做 @tygvi 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
mllam/neural-lam#883 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
future-agi/future-agi#4092 · 1 条评论 ·
维护者通常 1 天内回复
-
transcript analytics: a text whose only protected spans the prose pass redacts is withheld whole未关闭
难度 1/5 1 小时以内 新手友好度 82/100
WingedGuardian/GENesis-AGI#4641 ·
维护者通常 1 天内回复