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

cli-resilience

它能做什么

这项技能展示如何通过命令行检查并恢复 AI 网关的故障处理机制。适合需要查看提供商为什么被拦截、并把它重置的管理员。

适用场景

  • ✓当用户询问某个 AI 提供商为什么被跳过或拦截的时候。
  • ✓当用户想重置卡住的提供商或连接的时候。
  • ✓当用户想查看配额限制和退避状态的时候。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“我的某个 AI 提供商为什么被跳过?我该怎样重置它?”

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

工作原理

这项技能列出查看熔断器状态、连接冷却时间和配额状态的命令,可预览配额分配、修改韧性阈值或重置卡住的项目。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

Overview

Inspect and manage circuit-breaker states, connection cooldowns, quota limits, and backoff levels from the CLI. Reset stuck providers and configure resilience thresholds.

Quick install

npm install -g omniroute   # or: npx omniroute
omniroute --version

Subcommands

quota

Flags:

  • --provider <id>
  • --json

Example:

omniroute quota

quota status

Show truthful OmniRoute gateway, quota, pool, and circuit state

Example:

omniroute quota status

quota preview

Preview allocation enforcement without an upstream request

Flags:

  • --api-key-id <id>
  • --pool-id <id>
  • --tokens <n>

Example:

omniroute quota preview

quota ensure <json>

Idempotently create or update a quota pool from a JSON object

Example:

omniroute quota ensure <json>

resilience

Example:

omniroute resilience

resilience status

Flags:

  • --provider <p>

Example:

omniroute resilience status

resilience breakers

Flags:

  • --provider <p>

Example:

omniroute resilience breakers

resilience cooldowns

Flags:

  • --provider <p>
  • --connection-id <id>

Example:

omniroute resilience cooldowns

resilience lockouts

Flags:

  • --provider <p>
  • --model <m>

Example:

omniroute resilience lockouts

resilience reset

Flags:

  • --provider <p>
  • --connection-id <id>
  • --model <m>
  • --all-cooldowns
  • --yes

Example:

omniroute resilience reset

resilience profile

Example:

omniroute resilience profile

resilience show

Example:

omniroute resilience show

resilience set <name>

Example:

omniroute resilience set <name>

resilience config

Example:

omniroute resilience config

resilience show

Example:

omniroute resilience show

resilience set

Flags:

  • --threshold <n>
  • --reset-timeout <ms>
  • --base-cooldown <ms>

Example:

omniroute resilience set
常见问题

熔断器状态显示什么?

它显示某个提供商当前是否因网关的故障处理机制而被拦截。

我能在发出请求之前预览配额吗?

可以。quota preview 命令可以显示配额分配的执行情况,而不发出上游请求。

我能修改阈值吗?

可以。这项技能涵盖配置韧性阈值的方法。

详情

作者的原始描述

Inspect and manage circuit-breaker states, connection cooldowns, quota limits, and backoff levels from the CLI. Reset stuck providers and configure resilience thresholds.

repo: cheaper-inference/OmniRoute

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能