fix(recipes): allow widget save without lora matches

This commit is contained in:
pixelpaws
2025-11-13 15:52:31 +08:00
parent 41e649415a
commit cc8e1c5049
2 changed files with 42 additions and 2 deletions

View File

@@ -295,8 +295,6 @@ class RecipePersistenceService:
lora_stack = metadata.get("loras", "")
lora_matches = re.findall(r"<lora:([^:]+):([^>]+)>", lora_stack)
if not lora_matches:
raise RecipeValidationError("No LoRAs found in the generation metadata")
loras_data = []
base_model_counts: Dict[str, int] = {}