justhalfbit/dsh-plugin-jev-effort-selector ↗★ 2
dsh-plugin-jev-effort-selector
Let the Jev System One model pick the reasoning effort for every message, per model and per session. 适合希望根据上下文自动优化推理成本与效果的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:justhalfbit/dsh-plugin-jev-effort-selector从 GitHub 安装(本插件零构建步骤,无需 allowBuilds 配置)
dsh plugin --profile web add github:justhalfbit/dsh-plugin-jev-effort-selector
配置
所有配置项都写在 ~/.dsh/settings.yaml 的 jev-effort-selector 段落,也可以直接在设置界面里改:
| 字段 | 默认值 | 说明 |
|---|---|---|
enabled | true | 关掉后完全不干预,保持你手动选的等级 |
apiUrl | https://zenmux.ai/api/v1/systemone | Jev System One API 地址 |
apiKey | '' | 字面量密钥逃生口;标了 role('secret'),永不随设置外发。常规情况留空 |
apiKeyEnv | JEV_API_KEY | 凭据引用名,API 密钥以此名存放在凭据服务中。设置界面不显示此项,要改名请写 settings.yaml |
model | jev-latest | Jev 模型路由 |
confidenceThreshold | 0.6 | 低于该置信度时,在概率最高的两档里选更高的那档 |
timeoutMs | 5000 | 超时后放弃 Jev,本次调用沿用调用方已解析出的等级 |
useContext | true | 发送上下文信封,让「继续」这类追问继承话题深度 |
levels | {} | 每个模型的档位映射,键为 provider/model |
API 密钥存在哪
密钥不进 settings.yaml,走的是 DSH 的凭据服务,与官方「设置 → 模型」里自定义提供方的密钥完全同一条链路。设置卡片里的「API 密钥」框只做两件事:写入(set)和读状态(describe)——状态里只有「配没配、来自哪一层、能不能改」,没有任何字段能装下密钥本身,所以它永远不会回传到浏览器。
解析顺序(由凭据服务本身分层,最信任的优先):
启动时继承的进程环境 只读,最高优先级
> ~/.dsh/.credentials.yaml 设置界面写入这里,权限 0600
> /.env 只读兜底
> ~/.dsh/.env 只读兜底
所以这三种方式都可以,任选其一: