Allow for empty lora (no loras option) in Lora Pool

This commit is contained in:
dogatech
2026-03-11 16:15:18 -07:00
committed by pixelpaws
parent 03e1fa75c5
commit 8dd849892d
15 changed files with 170 additions and 59 deletions

View File

@@ -97,6 +97,10 @@ class LoraRoutes(BaseModelRoutes):
h.lower() for h in request.query["lora_hashes"].split(",")
]
include_empty_lora = request.query.get("include_empty_lora")
if include_empty_lora is not None:
params["include_empty_lora"] = include_empty_lora.lower() == "true"
return params
def _validate_civitai_model_type(self, model_type: str) -> bool: