跳到正文
The Decoder· Jonathan Kemper·· 13 天前AI 评分58

Hugging Face 将模型请求改由 OpenRouter 路由

Hugging Face now routes model requests through OpenRouter for the best price or speed

AI 导读

Hugging Face 宣布其 Inference Providers 服务把语言模型请求改由 OpenRouter 路由,现有代码无需改动即可继续运行。路由器默认按价格、速度和可靠性的综合表现选择供应商,并在故障时自动切换到其他供应商;开发者可用 :fastest 后缀选吞吐最高的供应商、用 :cheapest 后缀选最便宜的供应商,也可直接指定供应商名称,X-HF-Session-Id 请求头可让路由把供应商缓存纳入考虑。据 OpenRouter 自身测量,新路由下容量错误下降 46%,首 token 时间改善 16.9%,吞吐提升 16.3%。

来源:The Decoder · the-decoder.com