mattlennon/jev-harness-router ↗★ 0

jev-harness-router

提供预算感知的Jev路由插件配置与测试工具 适合需要根据价格、能力和验证记录配置模型请求路由的开发者。

套件
jev-harness-router
相容性
待驗證
Harness 依賴範圍
0.1.7-rc.2
Cordis 依賴範圍
4.0.4
版本
0.2.1
授權
MIT
最近更新
2026年9月28日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mattlennon/jev-harness-router

配置真实服务

npm run build
node dist/src/cli.js init --reasoning --config config/router.local.json
Copy-Item .env.example .env

不需要推理时省略 --reasoning。模板保留实际模型 ID、能力、价格、验证记录和密钥变量,路由均未启用。按 厂家说明 填写;Kimi preserved / always / k3 模式必须匹配实际模型。新模板默认 SSE,旧配置省略 transport 时继续 JSON。

node --env-file=.env dist/src/cli.js doctor --config config/router.local.json
node --env-file=.env dist/src/cli.js smoke --config config/router.local.json --route deepseek-strong
node --env-file=.env examples/agent.mjs --config config/router.local.json --route kimi-strong --prompt "解释函数职责"

doctor 只检查配置和环境变量。smoke 与 agent 示例会产生真实请求;smoke 固定模型、跳过 Jev,仅验证一次响应,不能替代工具多轮、取消计费和真实任务评测。先验证各路由,再启用 shadow;填写校准报告、语言覆盖与兼容白名单后再启用 auto。