comfy generate: stale Gemini model enum and incomplete GPT Image 2 output/edit support
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Bắt đầu với enum fallback nano-banana, phần trích xuất kết quả tổng quát, OpenAIImageEditRequest và lệnh refresh yêu cầu https://api.comfy.org/openapi.yml. Tái tạo schema, các lệnh tạo/chỉnh sửa GPT Image 2 và các lệnh refresh, sau đó kiểm tra catalog liên quan và phần xử lý response. Hoàn tất khi các tên Gemini hiện tại được xác thực, ảnh b64_json được tải xuống, các input ảnh chỉnh sửa được chấp nhận và refresh sử dụng một endpoint catalog hoạt động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 1k
- Fork
- 176
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 87
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Comfy-Org/comfy-cli
-
test_file_utils umask tests assert against a umask the code never reads (import-time _UMASK), so they only pass on a 0o022 hostCó thể đã có người làm @neverbiasu đã nhận 10 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Comfy-Org/comfy-cli#907 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
Comfy-Org/comfy-cli#781 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`comfy launch --background` fails with FileNotFoundError when comfy-cli is invoked by pathCó thể đã có người làm @RaphaelFakhri đã nhận 42 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Comfy-Org/comfy-cli#691 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Comfy-Org/comfy-cli#670 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Comfy-Org/comfy-cli
Issue tương tự
-
plot_graph crashes when a mesh node has no m2m edgeCó thể đã có người làm @tygvi đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
mllam/neural-lam#883 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement possible-duplicate
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
AOSSIE-Org/PictoPy#1715 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày
-
SQLite connector omits generated columns from the catalog, and drops relationships sourced on themĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NVIDIA/auto-ontology#511 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ethereum/execution-specs#3996 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
cpp-best-practices/project_validator#267 ·
Maintainer thường phản hồi trong vòng 1 ngày