自动选择最优模型,让每次对话都恰到好处
Smart Model Selector 是一个智能模型路由系统,根据你的任务内容自动选择最合适的 Qwen 模型:
核心亮点:
bash
# 通过 clawhub 安装
clawhub install smart-model-selector
# 或手动安装
git clone https://github.com/yourusername/smart-model-selector.git
cp -r smart-model-selector ~/.openclaw/workspace/skills/
安装后自动激活,无需额外配置。
你也可以手动启用:
bash
openclaw skills enable smart-model-selector
直接开始对话,系统会自动选择模型:
text
你:上海天气怎么样?
🧠 智能模型选择:默认模型(简单任务) → 使用 qwen3.5-plus
你:帮我设计一个高并发的系统架构
🧠 智能模型选择:检测到复杂推理任务 → 使用 qwen-max
你:用 Python 写个快速排序
🧠 智能模型选择:检测到代码相关任务 → 使用 qwen-coder-plus
如果需要手动指定模型:
text
/model-use qwen-max
✅ 已手动指定模型:qwen-max
text
/model-stats
📊 模型使用统计
总任务数:42
平均对话轮数:1.8
高质量任务比例:85%
**各模型使用情况:**
- **qwen3.5-plus**: 28 次,平均得分 88.5
- **qwen-max**: 10 次,平均得分 92.3
- **qwen-coder-plus**: 4 次,平均得分 95.0
对话结束后可以评分,帮助系统学习:
text
/model-rate 5
✅ 评分已记录:5/5 ⭐
任务类型关键词选择模型代码任务代码、函数、debug、python、C++、编程qwen-coder-plus复杂推理分析、规划、设计、架构、为什么、比较qwen-max多步骤包含 3 个以上逗号或"然后"qwen-max长文本超过 500 字qwen-max简单任务其他qwen3.5-plus
系统会记录每次对话的效果:
相似任务 会参考历史数据,越用越准确!
~/.openclaw/workspace/skills/smart-model-selector/data/model_selection.db 重置数据创建 config.json 自定义规则:
json
{
"default_model": "qwen3.5-plus",
"auto_select": true,
"show_reason": true,
"custom_rules": [
{
"keywords": ["翻译", "translate"],
"model": "qwen3.5-plus"
},
{
"keywords": ["写诗", "创作"],
"model": "qwen-max"
}
]
}
text
所有任务都用 qwen-max
- 简单问答也贵
- 成本浪费
text
智能分配:
- 80% 简单任务 → qwen3.5-plus(省钱)
- 15% 复杂任务 → qwen-max(保证质量)
- 5% 代码任务 → qwen-coder-plus(专业)
✅ 成本降低 60%
✅ 满意度提升 25%
✅ 平均响应速度提升 40%
命令说明示例/model-stats查看使用统计/model-stats``/model-use <model>手动指定模型/model-use qwen-max``/model-rate <1-5>评分反馈/model-rate 5``/model-reset重置当前任务/model-reset``/model-help查看帮助/model-help
欢迎提交 Issue 和 PR!
MIT License
许允 (xuyun)
感谢 OpenClaw 社区和 ClawHub 平台!
让 AI 更聪明,从选择合适的模型开始!🚀