llama.cpp b11699 修复 HTTP 代理支持
原标题:b11699
AI 摘要
llama.cpp 发布 b11699 版本,主要修复了 common_http_client() 忽略标准代理环境变量的问题,使 -hf 等下载功能在 HTTP 代理环境下不再静默失败。新版本支持 HTTPS_PROXY/HTTP_PROXY、NO_PROXY,并对格式错误的代理 URL 发出警告,同时强制对 localhost、127.0.0.0/8、::1 等回环地址绕过代理,避免 CLI 与本地 server 通信时卡在“Loading model...”。此外还提供了 macOS、Linux、Android、Windows 等多平台预编译包。
正文节选
<details open> common: honor HTTP_PROXY/HTTPS_PROXY env vars in http client (#21752) * common: honor HTTP_PROXY/HTTPS_PROXY env vars in http client common_http_client() was ignoring standard proxy env vars, causing downloads via -hf and similar flags to fail silently in environments behind an HTTP proxy (corporate networks, air-gapped infra, etc.). Checks HTTPS_PROXY/https_proxy for https:// URLs and HTTP_PROXY/http_proxy for http:// URLs, in that order. If a proxy URL is set and parseable,