feat: implement auto-organize models endpoint with batch processing and error handling

This commit is contained in:
Will Miao
2025-08-08 19:13:12 +08:00
parent 286f4ff384
commit a920921570
3 changed files with 284 additions and 1 deletions

View File

@@ -48,6 +48,9 @@ SUPPORTED_MEDIA_EXTENSIONS = {
# Valid Lora types
VALID_LORA_TYPES = ['lora', 'locon', 'dora']
# Auto-organize settings
AUTO_ORGANIZE_BATCH_SIZE = 50 # Process models in batches to avoid overwhelming the system
# Civitai model tags in priority order for subfolder organization
CIVITAI_MODEL_TAGS = [
'character', 'style', 'concept', 'clothing',