- Home
- Plugins
- Models & Providers
- dsh-provider-health
S
dsh-provider-health
semidia/dsh-provider-health
Provider health dashboard as a Settings page: read-only per-provider status, health (time-decayed from recent errors), thinking capability, max tokens and latest error, sourced from the llm-pi-ai config and the compat-healer error log.
Install
dsh plugin --profile web add github:semidia/dsh-provider-healthREADME
dsh-provider-health(Provider 健康面板)
DeepSeek Harness (DSH) 插件:在设置页新增「Provider 健康」页,只读聚合展示所有 llm-pi-ai 渠道的连接状态、健康度、Thinking 能力与最近错误。
Provider health dashboard for DeepSeek Harness: a read-only settings page that aggregates per-provider status, health, thinking capability and recent errors.
功能 / Features
- 设置 → Provider 健康:列出所有 llm-pi-ai 渠道,每张卡片显示:
- 渠道名称、默认标记、baseURL、模型数
- 健康标签(正常 / 异常 / 故障),按最近错误时间衰减判定(<1h 故障 / <7d 警告 / 更早正常)
- healer 是否已把该渠道标记为问题渠道(强制 off thinking)
- thinking 能力(reasoning on/off)、defaultMaxTokens、defaultContextWindow
- 最近错误(时间 + 中文诊断 + 原始消息)
- 采样覆盖值(sampling-sliders 的 maxTokens)
- 只读:不写任何配置,不改任何 provider 数据。
原理 / How it works
- Host(
lib/index.js):仅保持插件身份注册;无额外逻辑。 - Client(
lib/client.js):经settings.describe读取 llm-pi-ai / agent-default-model / sampling-sliders 命名空间;经connection.rpc.call('/dsh-llm-compat-healer', 'state/read' | 'errors/read')读取 healer 的问题渠道标记与错误日志;按错误时间衰减计算健康度并渲染卡片。
依赖 healer(dsh-llm-compat-healer)的错误记录能力;未装 healer 时健康标签回退为按错误时间判定,渠道清单仍可读。
安装 / Install
Out-of-tree bundle(GitHub 直装,无需 npm 账号):
# 1. 装进 profile(本地目录方式,或 pnpm add link:)
dsh plugin --profile web add link:D:/path/to/dsh-provider-health
# 2. 组合挂载(两种任选其一)
# a. 加入 profile package.json 的 dsh.profile.bundles
# b. 在 profile 的 cordis.patch.yml 里手动加:
# - insert:
# - id: dsh-provider-health
# name: 'dsh-provider-health'
# 3. 重启
dsh --profile web
文件结构 / Files
dsh-provider-health/
├── package.json # 包元数据 + dsh.client 声明
└── lib/
├── index.js # Host:插件身份注册
└── client.js # Client:设置页健康面板(window.__ModuleLoader__)
版本记录 / Changelog
0.1.0(2026-08-30)
- 初始发布:设置页 Provider 健康面板。
- 健康度按错误时间衰减判定,避免历史错误误报"故障"。
Related plugins
Y
dsh-routing-suite
yjh051108/dsh-routing-suite
7.2k2 days agoModels & ProvidersMIT
V
dsh-plugin-subscriptions
v1ki/dsh-plugin-subscriptions
3752 days agoModels & ProvidersMIT
M
dsh-commandcode-provider
mars-sea/dsh-commandcode-provider
295yesterdayModels & ProvidersMIT
C
dsh-workbuddy-connect
corrinehu/dsh-workbuddy-connect
1544 days agoModels & ProvidersMIT