Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-06-26 21:30:09 +02:00
parent 37f0d7c1c1
commit f44dd11b05
8 changed files with 32 additions and 23 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
from fastapi.exceptions import HTTPException
from fastapi.responses import JSONResponse, Response
from fastapi.responses import Response
from modules import shared
from modules.logger import log
from modules.api import models, helpers
@@ -92,7 +92,7 @@ def get_embeddings():
def get_wildcards():
"""List wildcard basenames (relative path with `.txt` stripped) from the configured wildcards directory."""
from modules import ui_extra_networks_wildcards
return [models.ItemWildcard(name=n) for n in ui_extra_networks_wildcards.list_wildcard_names()]
return [{"name": n} for n in ui_extra_networks_wildcards.list_wildcard_names()]
def get_extra_networks(page: str | None = None, name: str | None = None, filename: str | None = None, title: str | None = None, fullname: str | None = None, hash: str | None = None): # pylint: disable=redefined-builtin
"""List extra networks (LoRA, checkpoints, embeddings, etc.) with optional filtering by page, name, filename, title, fullname, or hash."""