LocalAI/pkg/downloader
LocalAI [bot] 364ad30a2f
feat(downloader): add HF_MIRROR environment variable support (#8847)
- Added HF_MIRROR env var to configure HuggingFace mirror URLs
- HF_MIRROR takes precedence over HF_ENDPOINT for simpler mirror config
- Supports both full URLs (https://hf-mirror.com) and simple hostnames (hf-mirror.com)
- Auto-adds https:// if no scheme is provided
- Also supports HF env var as an alias for HF_MIRROR

Closes #8414

Signed-off-by: localai-bot <localai-bot@users.noreply.github.com>
Co-authored-by: localai-bot <localai-bot@users.noreply.github.com>
2026-03-08 09:34:44 +01:00
..
downloader_suite_test.go groundwork: add pkg/concurrency and the associated test file (#2745) 2024-07-18 23:29:21 +00:00
huggingface.go feat: support HF_ENDPOINT env for the HuggingFace endpoint (#6220) 2025-09-11 21:04:57 +02:00
progress.go feat(ui): allow to cancel ops (#7264) 2025-11-13 18:41:47 +01:00
uri.go feat(downloader): add HF_MIRROR environment variable support (#8847) 2026-03-08 09:34:44 +01:00
uri_test.go feat(ui): add model size estimation (#8684) 2026-02-28 23:03:47 +01:00