fix(download): route UNet/diffusion model downloads to unet roots in location step

When downloading a diffusion model (UNet) from the checkpoints page, the
download modal's location step always showed checkpoint roots and paths.
Now the modal detects the file subtype and switches to unet_roots endpoint,
default_unet_root key, and 'unet' path template.
This commit is contained in:
Will Miao
2026-07-28 17:21:12 +08:00
parent 91b0bf8933
commit a527a847fe
2 changed files with 28 additions and 8 deletions

View File

@@ -333,6 +333,7 @@ export const PATH_TEMPLATE_PLACEHOLDERS = [
export const DEFAULT_PATH_TEMPLATES = {
lora: '{base_model}/{first_tag}',
checkpoint: '{base_model}',
unet: '{base_model}',
embedding: '{first_tag}'
};