From 7b41cdec65378d66cfe616a706be4105f2072d82 Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Sat, 19 Apr 2025 09:30:43 +0800 Subject: [PATCH] feat: Add civitai_deleted attribute to BaseModelMetadata for tracking deletion status from Civitai --- py/utils/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/py/utils/models.py b/py/utils/models.py index 5fb9824a..5a14b4f2 100644 --- a/py/utils/models.py +++ b/py/utils/models.py @@ -21,6 +21,7 @@ class BaseModelMetadata: civitai: Optional[Dict] = None # Civitai API data if available tags: List[str] = None # Model tags modelDescription: str = "" # Full model description + civitai_deleted: bool = False # Whether deleted from Civitai def __post_init__(self): # Initialize empty lists to avoid mutable default parameter issue