EddieLin
|
4d011df66a
|
fix(model-store): 接受 HF tree API 返回的裸 LFS oid,修复本地模型下载失败 (#1072)
* test(model-store): 复现 HF tree API 返回裸 LFS oid 时模型下载被拒
huggingface.co 与 hf-mirror.com 的 /api/models/{repo}/tree 接口里 lfs.oid
是不带 sha256: 前缀的 64 位十六进制,现有解析只认前缀形式,导致本地模型
下载直接报 unsupported Hugging Face LFS oid。
* fix(model-store): 接受 HF tree API 返回的裸 LFS oid,修复本地模型下载失败
2.0 起 parse_lfs_sha256 只接受 sha256: 前缀,但 huggingface.co 与
hf-mirror.com 的 tree 接口返回的是裸 64 位十六进制,导致下载 Qwen3-ASR
等本地模型时直接报 unsupported Hugging Face LFS oid。改为前缀可选,
仍校验 64 位十六进制。
|
2026-09-13 18:04:51 +08:00 |
|