mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-09-20 18:51:26 -03:00
2bc9860b24
Add per-model-type filename templates ({model_name}, {version_name},
{base_model}, {author}, {first_tag}, {hash_short}, {original_name}) so
downloaded files get informative names instead of e.g. V1.safetensors.
Empty template keeps the current filename (opt-in, off by default).
- apply template automatically after downloads; rename conflicts keep
the original name and never fail the download
- record original_file_name in metadata on rename for traceability
- bulk apply via GET|POST /api/lm/{prefix}/apply-filename-template with
WebSocket progress, sharing the auto-organize lock
- settings UI lives in the new Organization tab with validation, live
preview, and per-type 'apply to library' actions
40 lines
1.2 KiB
Python
40 lines
1.2 KiB
Python
"""Application-level orchestration services for model routes."""
|
|
|
|
from .auto_organize_use_case import (
|
|
AutoOrganizeInProgressError,
|
|
AutoOrganizeUseCase,
|
|
)
|
|
from .bulk_metadata_refresh_use_case import (
|
|
BulkMetadataRefreshUseCase,
|
|
MetadataRefreshProgressReporter,
|
|
)
|
|
from .download_model_use_case import (
|
|
DownloadModelEarlyAccessError,
|
|
DownloadModelUseCase,
|
|
DownloadModelValidationError,
|
|
)
|
|
from .example_images import (
|
|
DownloadExampleImagesConfigurationError,
|
|
DownloadExampleImagesInProgressError,
|
|
DownloadExampleImagesUseCase,
|
|
ImportExampleImagesUseCase,
|
|
ImportExampleImagesValidationError,
|
|
)
|
|
from .filename_template_use_case import FilenameTemplateUseCase
|
|
|
|
__all__ = [
|
|
"AutoOrganizeInProgressError",
|
|
"AutoOrganizeUseCase",
|
|
"BulkMetadataRefreshUseCase",
|
|
"MetadataRefreshProgressReporter",
|
|
"DownloadModelEarlyAccessError",
|
|
"DownloadModelUseCase",
|
|
"DownloadModelValidationError",
|
|
"DownloadExampleImagesConfigurationError",
|
|
"DownloadExampleImagesInProgressError",
|
|
"DownloadExampleImagesUseCase",
|
|
"ImportExampleImagesUseCase",
|
|
"ImportExampleImagesValidationError",
|
|
"FilenameTemplateUseCase",
|
|
]
|