Will Miao
8b7ba59263
feat: support gated/private Hugging Face repos via access token
...
Add a huggingface_api_key setting (Settings UI, HF_TOKEN /
HUGGING_FACE_HUB_TOKEN env override) and attach it as a Bearer token
to Hugging Face file listing, model card fetching and downloads, so
gated and private repositories can be downloaded once the user has
accepted the repo terms.
- fetch_json/fetch_text accept custom headers; ModelSource gains an
auth_headers() hook so handlers stay platform-agnostic
- 401/403 from the tree API now explain how to fix (configure token /
accept gated terms)
- aria2 pre-resolves huggingface.co redirects and strips credentials
before handing the signed CDN URL to aria2, mirroring the CivitAI
handling so the token never leaks to the CDN
- settings API exposes huggingface_api_key_set only; the raw key joins
_NO_SYNC_KEYS
2026-09-25 18:44:06 +08:00
..
2026-02-27 19:19:16 +08:00
2026-09-02 14:33:44 +08:00
2026-09-14 21:24:57 +08:00
2026-09-25 18:44:06 +08:00
2026-09-01 21:14:30 +08:00
2026-08-08 20:12:59 +08:00
2026-08-08 20:12:59 +08:00
2026-09-14 20:39:10 +08:00
2026-08-23 21:09:16 +08:00
2026-08-27 10:08:32 +08:00
2026-08-08 20:12:59 +08:00
2026-03-18 21:10:56 +08:00
2026-08-08 20:12:59 +08:00
2026-08-08 20:12:59 +08:00
2026-09-11 23:03:24 +08:00
2026-08-08 20:12:59 +08:00
2026-08-27 07:58:48 +08:00
2026-08-08 20:12:59 +08:00
2026-09-06 22:23:48 +08:00
2026-08-28 22:24:07 +08:00
2026-09-15 09:07:56 +08:00
2026-08-27 07:58:48 +08:00
2026-04-20 15:54:30 +08:00
2025-10-13 21:30:23 +08:00
2026-09-19 09:04:24 +08:00
2026-08-08 15:20:43 +08:00
2026-09-23 13:33:59 +08:00
2026-08-08 20:12:59 +08:00
2026-08-29 11:31:16 +08:00
2026-09-13 11:30:57 +08:00
2026-08-25 08:19:54 +08:00
2026-09-12 15:56:47 +08:00
2026-08-25 17:38:09 +08:00
2026-03-26 18:00:04 +08:00
2026-08-22 19:33:01 +08:00
2026-02-03 21:32:15 +08:00
2026-08-08 20:12:59 +08:00
2026-08-08 20:12:59 +08:00
2026-09-12 15:56:47 +08:00
2026-04-12 20:29:01 +08:00
2026-08-08 20:12:59 +08:00
2026-08-08 20:12:59 +08:00
2026-08-08 20:12:59 +08:00
2026-09-14 10:27:33 +08:00
2026-09-19 05:49:01 +08:00
2026-05-26 06:02:17 +08:00
2025-11-29 08:13:55 +08:00
2026-08-08 20:12:59 +08:00
2026-09-16 08:23:13 +08:00
2025-10-18 21:19:09 +08:00
2026-08-19 17:51:31 +08:00
2026-09-15 20:10:36 +08:00
2026-09-01 21:14:30 +08:00
2026-09-19 09:04:24 +08:00
2026-09-06 22:23:48 +08:00
2026-08-23 10:09:55 +08:00
2026-08-08 20:12:59 +08:00
2026-08-08 20:12:59 +08:00
2026-02-02 08:30:59 +08:00
2026-09-15 20:10:36 +08:00
2025-10-11 22:42:24 +08:00
2026-08-03 15:02:49 +08:00
2026-09-25 18:44:06 +08:00
2026-08-25 20:36:46 +08:00
2026-09-17 07:47:07 +08:00
2026-08-08 20:12:59 +08:00
2026-09-13 07:59:28 +08:00
2026-08-27 19:32:17 +08:00
2026-08-08 20:12:59 +08:00
2026-09-18 00:05:47 +08:00
2026-09-17 07:47:07 +08:00
2026-08-08 20:12:59 +08:00
2026-08-27 10:08:32 +08:00
2026-09-18 00:09:34 +08:00
2026-08-31 10:01:18 +08:00
2026-01-22 10:25:03 +08:00
2026-08-30 16:28:41 +08:00
2026-08-24 17:23:20 +08:00
2026-08-27 19:32:17 +08:00
2026-08-25 17:38:17 +08:00
2026-09-13 07:59:28 +08:00
2026-08-31 10:01:18 +08:00
2025-10-24 15:17:12 +08:00
2026-09-15 09:07:56 +08:00
2026-09-02 22:01:44 +08:00
2026-08-08 20:12:59 +08:00
2026-08-08 20:12:59 +08:00
2026-09-12 11:25:51 +08:00
2026-08-08 20:12:59 +08:00
2026-09-23 13:33:59 +08:00
2026-07-04 14:06:50 +08:00
2026-08-08 20:12:59 +08:00
2026-05-20 22:48:44 +08:00
2026-02-05 22:36:30 +08:00
2026-09-19 10:44:43 +08:00
2026-09-05 16:56:20 +08:00
2026-07-26 18:33:31 +08:00