← 返回
未分类 中文

Model Routing Skill

Automatically routes requests to the optimal model based on task type, prioritizing code, reasoning, simplicity, and normal tasks with fallback and concurren...
根据任务类型自动将请求路由至最优模型,优先处理代码、推理、简洁及普通任务,支持备选方案和并发...
sam-k-migz sam-k-migz 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 530
下载
💾 2
安装
1
版本
#latest

概述

Model Routing Skill (Compact)

Automatically route each request to the best model.

Routing rules:

  • Use gpt-5-codex for coding, debugging, build errors, stack traces, logs, repo edits, and implementation tasks.
  • Use gpt-5 for deep reasoning, architecture, large-context analysis, complex planning, and hard diagnosis.
  • Use gpt-4.1-nano for short trivial requests with no code and no deep reasoning.
  • Use gpt-5-mini for everything else.

Priority:

  1. code_heavy
  2. heavy_reasoning
  3. simple
  4. normal

Fallbacks:

  • gpt-5-codex -> gpt-5 -> gpt-5-mini -> gpt-4.1-nano
  • gpt-5 -> gpt-5-mini -> gpt-4.1-nano
  • gpt-5-mini -> gpt-4.1-nano

Retry on:

  • rate limit
  • TPM exceeded
  • timeout
  • temporary unavailable
  • capacity errors

Concurrency:

  • max 2 concurrent requests
  • reduce to 1 for large prompts or repeated TPM failures
  • queue excess work

Respect explicit user overrides and any org/channel/session model locks first. Do not override a forced model.

Only auto-route when routing is enabled and no explicit model is set.

Safety caps (defaults, may be tuned by admin):

  • Max input tokens per class: simple 4k, general 8k, code 12k, heavy 20k
  • Max output tokens per class: simple 400, general 800, code 1200, heavy 1500
  • Per-turn budget ceiling: $0.02 (downgrade on breach)

Telemetry (lightweight): record {taskType, chosenModel, capsApplied} to internal trace; do not expose to users unless they ask.

Fallbacks: never upgrade to a more expensive model on retry; only downgrade tiers.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-03 05:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

ClawHub Publisher

sam-k-migz
使用随附的 ClawHub Publisher CLI,对 OpenClaw 技能进行验证、准备、打包并发布至 ClawHub,提供更清晰的验证、更整洁的打包和更安全的流程。
★ 0 📥 429
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,119 📥 838,740
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,485 📥 546,950