feat: implement download path templates configuration with support for multiple model types and custom templates

This commit is contained in:
Will Miao
2025-08-13 16:41:36 +08:00
parent d04deff5ca
commit e4195f874d
5 changed files with 513 additions and 104 deletions

View File

@@ -184,7 +184,7 @@ class MiscRoutes:
logger.info(f"Example images path changed to {value} - server restart required")
# Special handling for base_model_path_mappings - parse JSON string
if key == 'base_model_path_mappings' and value:
if (key == 'base_model_path_mappings' or key == 'download_path_templates') and value:
try:
value = json.loads(value)
except json.JSONDecodeError: