OpenRouter 现在支持路由来自 Hugging Face 38 个实验室的 160 个聊天模型,用户可继续使用原有的 Hugging Face token 和代码。系统会根据价格、速度和可用性自动选择供应商并提供自动故障转移,用户还可通过在模型 ID 中添加 :fastest 或 :cheapest 来指定优先级。
OpenRouter 通过集成 Hugging Face 模型路由,实现了基于价格和速度的自动故障转移,降低了调用开源模型的工程复杂度。
OpenRouter 现在可为 Hugging Face 上来自 38 个实验室的 160 个聊天模型路由请求。你现有的 Hugging Face token 和代码依然可用。
OpenRouter 会根据价格、速度和在线时长选择供应商。如果该供应商返回错误,它会在同一次 API 调用中用另一个供应商重试。你还可以在模型 ID 后加上 :fastest 或 :cheapest,告诉它更看重哪一点。
@huggingface 上的开放模型现在可通过 OpenRouter 运行。 每个请求都会自动路由到该模型在价格、速度和在线率方面最优的提供商,并支持自动故障切换。一切都在同一个 Hugging Face token 和 API 上运行。 你还可以通过 Broadcast 将追踪记录发送到 Hugging Face Storage,让请求与模型一起存放在 Hub 上,随时可用于评估或微调。
原文
Open models on @huggingface now run through OpenRouter. Each request goes to the provider with the best price, speed, and uptime for that model, with automatic failover. Everything runs on the same Hugging Face token and API. You can also send your traces to Hugging Face Storage with Broadcast, so your requests live on the Hub next to your models, ready for things like evals or fine-tuning.
来源:Wes Roth · x.com