Files
BISAM20andClaude Opus 5 e1675acb49 fix: stop needing huggingface_hub to list repos and files
The panel was showing exactly 161 repos: Comfy-Org 52, Kijai 66,
black-forest-labs 34, HiDream-ai 3, stabilityai 2, THUDM 2, tencent 1,
genmo 1. Those are precisely the contents of TRACKED_SPECIFIC_REPOS, author
for author and count for count. Nothing at all was coming from the
HuggingFace API, so city96 and Lightricks — which have no pinned repos —
were absent entirely, and the authors that did appear showed only their
pinned subset rather than their full, newest-first list.

The cause is the HF_AVAILABLE guard. list_author_repos, list_repo_files and
get_repo_file_sizes each returned an empty result when huggingface_hub could
not be imported, leaving the hardcoded pins as the only content and printing
nothing to explain it. Installing the package fixes it, but silently
collapsing to a stale hardcoded list is the wrong failure mode, and it looks
identical to a caching bug — which is what it was mistaken for.

All three now use the HuggingFace REST API through requests, which ComfyUI
already depends on, so huggingface_hub is no longer required for browsing.
Listing a repo uses the tree endpoint, which reports sizes alongside paths;
get_repo_file_sizes reads from that same response instead of making a second
round trip. Failures are logged rather than swallowed.

Verified with huggingface_hub forced un-importable: 313 repos, Comfy-Org 87,
Kijai 76, city96 41, Lightricks 66, all 13 LTX-2.5 repos, newest first, and
file listings returning sizes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 19:47:43 +02:00

18 lines
647 B
TOML

[project]
name = "comfyui-advanced-model-manager"
version = "1.0.17"
description = "Advanced Model Manager for ComfyUI — browse, search and download models from HuggingFace and GitHub directly from the ComfyUI interface, paste a link, or pull every model a workflow needs."
license = { file = "LICENSE" }
dependencies = [
"huggingface_hub>=0.20.0",
"requests>=2.28.0",
]
[project.urls]
Repository = "https://github.com/BISAM20/ComfyUI-advanced-model-manager"
[tool.comfy]
PublisherId = "bisam20"
DisplayName = "Advanced Model Manager"
Icon = "https://raw.githubusercontent.com/BISAM20/ComfyUI-advanced-model-manager/main/web/icon.png"