Files
comfyui_o1key/docs/decisions/0017-remove-retired-unified-nano-models.md
T
Jony a181cc1768 Add MJ image node, GIF save, and Kling/image generator updates
Ship o1key MJ图片生成 with content/style refs and prompt flags, save-GIF with preview, Kling 4.0 helpers, plus GPT/unified image node polish and docs.
2026-11-09 09:11:12 +08:00

20 lines
1.4 KiB
Markdown

# 0017: Remove retired Nano Banana models from the unified image generator
- Status: Accepted
- Date: 2026-11-08
## Context
The unified `O1keyImageGenerator` exposed `Nano Banana 2 Lite` and `Nano Banana` even though the current supported panel set is `Nano Banana 2.1`, `Nano Banana 2`, and `Nano Banana Pro`. Removing those values from the schema without a workflow migration lets ComfyUI replace an old combo value with the first option while configuring a graph after restart.
## Decision
The unified catalog and panel expose only the three supported Nano Banana models. Saved unified workflows containing either retired value are migrated before widget restoration to `Nano Banana 2`; the old Lite `512` resolution is migrated to `1K`, which is the closest valid resolution in the replacement model. Standalone `NanoBanana` and `BatchNanoBananaPro` keep their released model values and route mappings.
The panel normalizes retired values as a defensive fallback for graphs received without the frontend migration. The model label and selected value share one bordered control so the panel matches ComfyUI's native combo-widget presentation.
## Validation
- `tests/test_o1key_image_generator.py` verifies the unified schema model list.
- `tests/test_o1key_image_generator_frontend.mjs` verifies retired-model normalization, idempotent workflow migration, and the unified model list.