跳到正文
Skillpedia
部署与云(DevOps)84k · #1421

omni-budget

它能做什么

这项技能展示如何为 OmniRoute 设置费用控制和速率限制。适合想把 AI 花费和请求量控制在设定范围内的管理员。

适用场景

  • ✓当用户想为某个 API 密钥或整个网关设置消费上限的时候。
  • ✓当用户想查看已经使用了多少配额的时候。
  • ✓当用户想在各个提供商之间更改速率限制规则的时候。

技能链接

https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-budget/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-budget/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请显示我当前的速率限制设置,并把限制改得更严格一些。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能列出读取和更新速率限制配置的调用。每次调用都使用 bearer 令牌,完整的请求细节见 OpenAPI 规范。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

Overview

Configure spending limits, token quotas, and rate-limit policies per API key or globally. Inspect current consumption and enforce cost controls across providers.

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/rate-limit

Get rate limit configuration

curl http://localhost:20128/api/rate-limit \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

POST /api/rate-limit

Update rate limit configuration

curl -X POST http://localhost:20128/api/rate-limit \
  -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.

常见问题

限制可以只针对一个密钥吗?

这项技能说明,消费上限、令牌配额和速率限制可以针对单个 API 密钥设置,也可以全局设置。

完整的请求细节在哪里?

这项技能指向网关提供的 OpenAPI 规范。

它能帮助执行费用控制吗?

能。这项技能说明可以用这些设置在各个提供商之间执行费用控制。

详情

作者的原始描述

Configure spending limits, token quotas, and rate-limit policies per API key or globally. Inspect current consumption and enforce cost controls across providers.

repo: cheaper-inference/OmniRoute

热度

GitHub 星标
84k
排名
#1421
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能