dmsobtl/dsh-cost-optimizer ↗★ 0
dsh-cost-optimizer
DSH plugin: smart model routing by task complexity — simple tasks use cheap models, hard tasks use powerful ones. Tracks spending and enforces budgets.
AI Analysis
核心用途是优化 API 调用成本。适合需要严格控制预算、根据任务难度自动切换模型的企业或个人开发者。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗配置
- id: cost-optimizer
plugin: dsh-cost-optimizer
config:
tiers:
fast:
provider: deepseek
model: deepseek-v4-flash
costPer1kInput: 0.0001
costPer1kOutput: 0.0004
standard:
provider: deepseek
model: deepseek-v4
costPer1kInput: 0.0005
costPer1kOutput: 0.002
powerful:
provider: deepseek
model: deepseek-v4-pro
costPer1kInput: 0.002
costPer1kOutput: 0.008
complexityThresholds:
fastMaxTokens: 2000
powerfulMinTokens: 8000
powerfulMinTools: 5
budget:
sessionLimit: 0.5 # 单次会话最多花 $0.5
dailyLimit: 5.0 # 每天最多 $5
currency: USD
verbose: false