omni-combos-routing
它能做什么
这项技能展示如何设置路由组合,决定每个请求由哪个模型处理。适合想设置备用、流量分配,或在各个提供商之间自动选择的开发者。
适用场景
- ✓当用户想设置模型或提供商的备用链的时候。
- ✓当用户想按权重分配请求,或在各个提供商之间轮流分配请求的时候。
- ✓当用户想查看组合的指标或测试路由结果的时候。
技能链接
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-combos-routing/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请设置一个组合:先尝试我最便宜的模型,失败时切换到备用模型。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能列出用于列出、创建、读取、更新和删除组合的 REST 调用。组合可以使用 19 种策略之一,例如优先级、加权或轮询。更新时只改变你发送的字段。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Overview
Create and manage routing combos with 19 strategies (priority, weighted, round-robin, Auto-combo, and more). Configure fallback chains, test routing outcomes, and retrieve combo metrics.
Authentication
All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.
Endpoints
GET /api/combos
List routing combos
curl http://localhost:20128/api/combos \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST /api/combos
Create routing combo
curl -X POST http://localhost:20128/api/combos \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET /api/combos/{id}
Get combo by ID
curl http://localhost:20128/api/combos/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
PUT /api/combos/{id}
Update combo
Partial update: the body is merged onto the stored combo, so a field left out keeps its current value. An array that IS sent replaces the stored one outright.
curl -X PUT http://localhost:20128/api/combos/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
PATCH /api/combos/{id}
Update combo
Partial update: the body is merged onto the stored combo, so a field left out keeps its current value. An array that IS sent replaces the stored one outright.
curl -X PATCH http://localhost:20128/api/combos/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE /api/combos/{id}
Delete combo
curl -X DELETE http://localhost:20128/api/combos/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/combos/metrics
Get combo metrics
curl http://localhost:20128/api/combos/metrics \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST /api/combos/test
Test a combo configuration
curl -X POST http://localhost:20128/api/combos/test \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET /api/fallback/chains
List fallback chains
Returns all registered fallback chains for model routing.
curl http://localhost:20128/api/fallback/chains \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST /api/fallback/chains
Create fallback chain
Registers a fallback routing chain for a model.
curl -X POST http://localhost:20128/api/fallback/chains \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE /api/fallback/chains
Delete fallback chain
curl -X DELETE http://localhost:20128/api/fallback/chains \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/combos/auto
GET combos › auto
curl http://localhost:20128/api/combos/auto \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/combos/builder/options
GET combos › builder › options
curl http://localhost:20128/api/combos/builder/options \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST /api/combos/duplicate
POST combos › duplicate
curl -X POST http://localhost:20128/api/combos/duplicate \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
POST /api/combos/reorder
POST combos › reorder
curl -X POST http://localhost:20128/api/combos/reorder \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Payloads
See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.
OmniRoute — Routing & Combos
Requires OMNIROUTE_URL and OMNIROUTE_KEY. See entry-point SKILL for setup.
What is a combo?
A combo is a named group of providers/models with a routing strategy. All requests through a combo are automatically distributed, failed-over, and load-balanced — the caller uses a single model ID like my-combo.
List existing combos
curl $OMNIROUTE_URL/api/combos \
-H "Authorization: Bearer $OMNIROUTE_KEY"
`
常见问题
一共有多少种策略?
这项技能列出了 19 种路由策略,包括优先级、加权、轮询和 Auto-combo。
更新组合时会发生什么?
这是部分更新:你没有发送的字段会保持原值,但你发送的任何列表都会替换已存储的列表。
我能测试路由吗?
可以。这项技能涵盖测试路由结果和获取组合指标的方法。
详情
作者的原始描述
Create and manage routing combos with 19 strategies (priority, weighted, round-robin, Auto-combo, and more). Configure fallback chains, test routing outcomes, and retrieve combo metrics.
热度
- GitHub 星标
- 84k
- 排名
- #1424
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …