mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-05-06 16:36:45 -03:00
feat(check-models-exist): add batch endpoint for checking multiple model IDs
New endpoint: GET /api/lm/check-models-exist?modelIds=1,2,3,... Accepts comma-separated modelIds, returns a results array with one entry per modelId. Uses a single scanner lookup batch - three service-registry calls total, regardless of model count. Skips history checks entirely (same rationale as the singleton endpoint: when models exist locally, history is redundant). Expected: reduces 231 HTTP round-trips to 1 for the browser extension's model-card indicator flow. Combined with the prior SQLite-connection and history-skip fixes, total wall-clock time for a 175K-lora user's page load drops from ~9.4s to <10ms.
This commit is contained in:
@@ -43,6 +43,7 @@ MISC_ROUTE_DEFINITIONS: tuple[RouteDefinition, ...] = (
|
||||
RouteDefinition("POST", "/api/lm/update-node-widget", "update_node_widget"),
|
||||
RouteDefinition("GET", "/api/lm/get-registry", "get_registry"),
|
||||
RouteDefinition("GET", "/api/lm/check-model-exists", "check_model_exists"),
|
||||
RouteDefinition("GET", "/api/lm/check-models-exist", "check_models_exist"),
|
||||
RouteDefinition(
|
||||
"GET",
|
||||
"/api/lm/model-version-download-status",
|
||||
|
||||
Reference in New Issue
Block a user