mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
fix(metadata): rename model_type to sub_type and add embedding subtype, see #797
- Change `model_type` field to `sub_type` for checkpoint models to improve naming consistency - Add `sub_type="embedding"` for embedding models to properly categorize model subtypes - Maintain backward compatibility with existing metadata structure
This commit is contained in:
@@ -223,7 +223,7 @@ class MetadataManager:
|
|||||||
preview_url=normalize_path(preview_url),
|
preview_url=normalize_path(preview_url),
|
||||||
tags=[],
|
tags=[],
|
||||||
modelDescription="",
|
modelDescription="",
|
||||||
model_type="checkpoint",
|
sub_type="checkpoint",
|
||||||
from_civitai=True
|
from_civitai=True
|
||||||
)
|
)
|
||||||
elif model_class.__name__ == "EmbeddingMetadata":
|
elif model_class.__name__ == "EmbeddingMetadata":
|
||||||
@@ -238,6 +238,7 @@ class MetadataManager:
|
|||||||
preview_url=normalize_path(preview_url),
|
preview_url=normalize_path(preview_url),
|
||||||
tags=[],
|
tags=[],
|
||||||
modelDescription="",
|
modelDescription="",
|
||||||
|
sub_type="embedding",
|
||||||
from_civitai=True
|
from_civitai=True
|
||||||
)
|
)
|
||||||
else: # Default to LoraMetadata
|
else: # Default to LoraMetadata
|
||||||
|
|||||||
Reference in New Issue
Block a user