suggest_template_for_checkpoint
Suggests a ComfyUI workflow template from a checkpoint filename—FLUX uses txt2img_flux, SD XL/SD 1.5 use txt2img—so you can choose the right template before building a workflow.
Instructions
Suggest workflow template (txt2img_flux or txt2img) from checkpoint filename. FLUX checkpoints (e.g. flux1-dev-fp8.safetensors) use txt2img_flux; SD XL / SD 1.5 use txt2img. Call before build_workflow when the user did not specify a template.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ckpt_name | Yes | Checkpoint filename (e.g. flux1-dev-fp8.safetensors, sd_xl_base_1.0.safetensors) |