dsh-model-slider
DSH Web UI model seat: 3-level quick slider (low/medium/high, each preconfigured with model + reasoning effort), advanced model/effort picker, modality icons, and per-provider usage/balance display. DSH 模型选择器增强:低中高三档快切滑块 + 高级选择 + 模态图标 + 供应商用量显示。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ipcjs/dsh-model-slider说明文档
阅读完整 README ↗配置 / Configuration
配置文件:~/.dsh/.model-slider.json(不存在时使用内置默认值,无需创建)。
{
"levels": [
{
"id": "low",
"label": "低",
"provider": "deepseek-official",
"model": "deepseek-v4-flash",
"reasoningEffort": "off"
},
{
"id": "medium",
"label": "中",
"provider": "deepseek-official",
"model": "deepseek-v4-flash",
"reasoningEffort": "max"
},
{
"id": "high",
"label": "高",
"provider": "kimi-coding",
"model": "k3",
"reasoningEffort": "max"
}
],
"usage": {
"deepseek-official": {
"kind": "prepaid",
"endpoint": "https://api.deepseek.com/user/balance"
},
"kimi-coding": {
"kind": "membership",
"endpoint": "https://api.kimi.com/coding/v1/usages"
},
"google": {
"kind": "prepaid",
"endpoint": ""
}
}
}
levels:滑块档位。provider/model必须是 DSH 中已配置的供应商与模型;reasoningEffort可省略(用模型默认档)。档位配置了不可用的模型/推理等级时,该档点击会提示(level.invalid)。usage:用量查询配置。kind为membership(会员额度:解析usage.{limit,remaining,resetTime}+limits[]窗口)或prepaid(预付费余额:解析balance_infos[0].{total_balance,currency})。endpoint为空串表示不查询(显示「不可用」)。- API Key 从 DSH 的 credentials 服务读取(
settings.yaml中配置的apiKeyEnv),不会硬编码或写入本文件。