mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user