Wes Roth· @WesRoth · X·· 15 天前精选AI 评分74
AI 导读
OpenRouter 现在支持路由来自 Hugging Face 38 个实验室的 160 个聊天模型,用户可继续使用原有的 Hugging Face token 和代码。系统会根据价格、速度和可用性自动选择供应商并提供自动故障转移,用户还可通过在模型 ID 中添加 :fastest 或 :cheapest 来指定优先级。
推荐理由
OpenRouter 通过集成 Hugging Face 模型路由,实现了基于价格和速度的自动故障转移,降低了调用开源模型的工程复杂度。
正文 · 原文
OpenRouter now routes requests for 160 chat models from 38 labs on Hugging Face. Your existing Hugging Face token and code still work.
OpenRouter picks a provider based on price, speed, and uptime. If that provider returns an error, it retries with another one inside the same API call. You can also add :fastest or :cheapest to the model ID to tell it which matters more.
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.在 X 查看被引用的帖子
来源:Wes Roth · x.com