dsh-llm-latency

DSH PLUGIN模型与账号接入

仓库 shengbinxu/dsh-llm-latency

模型与账号接入 L5 · 运行验证通过 安全审查:低风险 可信度:金 可安装插件
安装这个插件

DSH plugin 提供按厂商、模型、会话的 LLM 延迟与缓存命中遥测,通过仪表盘和模型工具对比各厂商性能,帮助选择更快的模型提供商。

一句话选型结论

按资料字段整理

dsh-llm-latency 是模型与账号接入类的 DSH 可安装插件,验证等级 L5 · 运行验证通过,安全审查为低风险,列出 4 项功能,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类模型与账号接入 收录类型可安装插件 验证等级L5 · 运行验证通过 安全审查低风险
验证等级 L5 L5 · 运行验证通过
GitHub 星标 0 复刻 0 · 未关闭 issue 未标注
最近更新 2026-10-07 创建于 2026-08-29
README 8.2 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:shengbinxu/dsh-llm-latency
  1. 1
    确认版本与运行环境

    兼容的 DSH 版本为 0.2.0-rc.2 等 7 个;版本不匹配时安装会报错。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本0.2.0-rc.2 等 7 个版本版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

4 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-llm-latency:DeepSeek Harness 的延迟与缓存命中遥测插件

  • 被动遥测
  • 三种对比
  • 仪表盘
  • 请求日志

上游标签

benchmarkdeepseek-harnessdsh-pluginlatencyllmplugintelemetry

验证等级与安全审查

L5 · 运行验证通过
自动化流程结论,不是人工审核
验证等级L5 · 运行验证通过在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度金综合仓库活跃度与验证结果

上面的结论来自上游最近一次自动化验证(2026-10-09): 同一套检查会在插件发新版后重跑,页面显示的是最新一次的逐项结果。

逐项检查结果

L1 · 已找到 ✓ 通过
  • L1.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L2 · 结构化 ✓ 通过
  • L2.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L3 · 安装规范 ✓ 通过
  • L3.1_INSTALL_COMMAND_PARSED 安装命令已解析 方式:安装规范解析
  • L3.2_DSH_VERSION_DECLARED DSH 版本已声明 方式:DSH 版本声明
L4 · 安装已测 ✓ 通过
  • L4.1_INSTALL_EXECUTED_CONFINED 受限沙盒内执行安装 方式:沙盒安装执行
  • L4.2_INSTALL_SUCCESS 沙盒安装成功 方式:沙盒安装执行
  • L4.3_ARTIFACT_CONFIRMED 安装产物已确认 方式:沙盒安装执行
L5 · 运行已测 ✓ 通过
  • L5.1_INSTALL_PASSED_SANDBOXED 沙盒安装通过 方式:沙盒安装执行
  • L5.2_WEB_BOOT_READY Web 启动就绪 方式:Web 启动
  • L5.3_HTTP_SERVED HTTP 服务响应 方式:HTTP 请求
  • L5.4_PLUGIN_INVENTORY_ACTIVE 插件清单中已激活 方式:插件清单查询

风险详情

  • 审查结论 通过
  • 结论说明 vet 静态分析未发现可疑行为,判定为干净(clean)。
  • 风险计数 严重 0 / 高 0 / 中 0
  • 风险详情 未发现严重或警告级问题。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L5:安装和运行都在沙盒里跑通过,装完能直接用的概率高。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。
  • 标注了兼容的 DSH 版本(0.2.0-rc.2 等 7 个),按版本装不容易报错。
  • 列出了 4 项功能,能直接看出它解决什么问题。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在模型与账号接入场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-llm-latency当前 L5 · 运行验证通过 低风险 0 0.2.0-rc.2 等 7 个 有
archify L4 · 沙盒安装通过 低风险 8.0 万 未标注 有
DeepSeek-Reasonix L4 · 沙盒安装通过 低风险 3.6 万 未标注 有
nocobase L3 · 安装规范通过 低风险 2.5 万 0.1.1-rc.2 无
learn-harness-engineering L4 · 沙盒安装通过 低风险 2.0 万 未标注 有
dsh-our-free-model 未做沙盒验证 未标注 8,064 未标注 无

仓库档案

模型与账号接入
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方shengbinxu仓库 dsh-llm-latency · 默认分支 未标注
分类模型与账号接入ai
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言JavaScript仓库主语言
许可证NOASSERTION商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 0 / 未标注收录时的数值,非实时
创建 / 更新2026-08-29 · 2026-10-07最后推送 未标注
本站收录2026-08-29首次进入本站目录的时间

README 全文

8.2 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-llm-latency

English · 中文

A passive LLM latency dashboard for DeepSeek Harness. See how long models take to respond, compare vendors, and inspect individual requests without starting extra model calls.

What's in v0.2.0

  • Native dashboard: open LLM Latency in the DSH sidebar. Overview, time-window comparison, session comparison, and request log share the existing recorded data.
  • Composer quick view: the Latency button opens recent latency. Select the last 15 minutes, hour, or three hours; inspect the latest response delay, median response delay, median first-text delay, successful/total samples, and last sampling time.
  • Honest freshness: idle models show No recent samples. The panel never substitutes a historical average for a current measurement or probes an unused model.
  • Metric explanations: hover or keyboard-focus latency and total-output headings for their timing and eligibility rules. The native interface follows DSH's theme and locale; Chinese metric names use plain Chinese.
  • Legacy rate restored: total output speed remains available alongside strict visible-answer output and overall rates. Missing reasoning usage does not hide the legacy value or turn missing visible rates into zero.
  • Existing interfaces retained: /llm-latency/, JSON endpoints, the latency_report tool, recorded statistics, and CSV export remain available.

Screenshots

Recent quick view — completed calls only, with last-sampling times and explicit idle states.

Native dashboard — total output speed and visible-answer rates are separate; hover explanations describe the measurements.

Install or update

Tested with DeepSeek Harness 0.2.1-alpha.1, Node.js 22, and the Web profile. Harness extension APIs are pre-stable; compatibility with other versions is not guaranteed.

Install the tagged GitHub version:

dsh plugin --profile web add 'github:shengbinxu/dsh-llm-latency#v0.2.0'

Alternatively, download the .tgz from GitHub Releases and install that file:

dsh plugin --profile web add ./dsh-llm-latency-0.2.0.tgz

Refresh the GUI after installation. If activation requires a restart, restart the existing DSH service using its normal service manager. The distributed package includes built Host files and its browser entry; installation does not require a build step.

Use the plugin

Entry What it shows
DSH sidebar → LLM Latency Full dashboard with four views and CSV export
Conversation composer → Latency Exact recent latency from retained completed-call samples
http://127.0.0.1:3080/llm-latency/ Retained standalone dashboard; use your configured host/port
latency_report tool Recorded vendor/model or session comparison

The quick panel refreshes every 10 seconds while open and stops on close. Close, Escape, and outside clicks dismiss it; Open full dashboard switches to the native page without changing the selected conversation.

Recent windows use request start timestamps and exact retained samples. Medians include only successful calls with that metric; first-response and first-text sample sets can differ. Ring limits can reduce the retained count. No recent sample means this installation has no fresh measurement, not that the model is unavailable.

The full dashboard defaults to the last 30 days. Model/vendor/time filters apply to overview and cross-vendor comparison. Session comparison summarizes full sessions; use single-model sessions and similar prompts. Request logs support search, status, model, time, and one selected vendor. Historical percentiles use overlapping whole-hour buckets, so boundary hours may contain calls outside the requested window.

What the metrics mean

Metric Calculation
First-response wait / TTFT First stream pull → first nonempty text, reasoning, or tool-call delta
First-text wait First stream pull → first nonempty visible-answer text delta; reasoning and tools do not count
End-to-end duration First stream pull → stream completion; excludes other tools in the Agent turn
Median / p50 Middle eligible value; historical dashboard values are histogram estimates, quick-view values are exact
p95 Approximate value that 95% of eligible successful samples do not exceed
Total output speed Legacy cumulative total-output tokens ÷ successful calls' cumulative time from first content to completion
Visible-answer output speed Eligible visible tokens ÷ seconds between first and last nonempty text delta
Visible-answer overall speed Eligible visible tokens ÷ full stream duration, including the initial wait
Rate samples Separate eligible counts for visible-answer output / overall rates
Cache hit / write Cached-read / cached-write tokens ÷ total uncached + cached-read + cached-write input

Timing starts when the adapter is first pulled, usually when it starts its request, rather than when the user clicks Send. A first response can be reasoning or a tool call before any answer text appears. Browser rendering time is excluded.

Why a visible rate can be —: visible tokens require output usage, a separate reasoning count (explicit zero is valid), visible text, success, and no tool-call deltas. Missing data is not zero. A single text delta supports overall speed only. The tested Harness pi-ai adapter folds reasoning into total output without exposing its separate count; its strict visible rates therefore remain unavailable. No character estimates or assumed zero reasoning counts are used.

Legacy rate limitation: total output may include reasoning, tools, and reported failed-call output, while the old duration denominator includes successful calls only. Failures can inflate this legacy rate. It is retained for compatibility and displayed separately, not presented as pure answer-text speed. JSON and CSV keep tokensPerSecond for this legacy metric and outputTokensPerSecond / overallTokensPerSecond for strict visible rates.

Latency also depends on prompt size, reasoning settings, network conditions, and tool use. Recorded samples describe this installation's requests, not a provider-wide load monitor. Cross-vendor confidence intervals concern TTFT only, not throughput.

Data and configuration

Aggregates persist in $DSH_HOME/llm-latency/stats.json and individual records in $DSH_HOME/llm-latency/requests.jsonl (~/.dsh by default). Auxiliary compaction/title calls appear in the request log but not rankings or the recent panel. Upgrades preserve old latency/cache data; old samples without visible-rate fields contribute no eligible visible-rate samples.

Configure the llm-latency row through the bundle patch or a profile override:

Key Default Meaning
retentionDays 30 Historical aggregation retention
recentLimit 2000 Exact-sample ring capacity per vendor/provider/model
sessionLimit 500 Retained sessions
spikeFloorMs 10000 Slow first-response threshold
modelAliases {} Canonical model → provider model IDs
minSamplesForComparison 20 Minimum successful samples for median confidence intervals
logLimit 5000 Request-log memory capacity
logRetentionDays 7 Request-log retention
statsPath / logPath Default data paths Optional persistence overrides

Development

npm ci
npm run typecheck
npm run build
npm test

Commit lib/ with its source changes: GitHub installation consumes the built Host files. The browser entry is self-contained JavaScript loaded through the Harness module table and requires no added bundler or separate React installation.

The Host wraps llm/stream and exposes read-only JSON. Native UI contributions register in main, sidebar.panellist, conversation.input.left, and shell.overlay; both browser forms read the same Host data. Resource cleanup belongs to Cordis effects so unloading releases the route and listener. See DESIGN.md for the original data/comparison design.

License

MIT

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
dsh-llm-latency 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add github:shengbinxu/dsh-llm-latency` 即可。

dsh-llm-latency 的验证等级是什么意思?

L5 · 运行验证通过。在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来

dsh-llm-latency 安全吗?

低风险。vet 静态分析未发现可疑行为,判定为干净(clean)。

dsh-llm-latency 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-llm-latency 支持哪些 DSH 版本?

上游记录的兼容版本包括 0.2.0-rc.2、0.2.0-rc.1、0.1.7-rc.2、0.1.6-alpha.2、0.1.6-alpha.1、0.1.5-rc.2、0.1.3-alpha.2。

dsh-llm-latency 用的是什么许可证?

上游标注为 NOASSERTION。商用或二次分发前请到仓库确认许可证原文。

dsh-llm-latency 有哪些功能?

被动遥测、三种对比、仪表盘、请求日志。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

模型与账号接入
按星标排序,可作替代方案

archify

archify

从仓库或系统描述生成经过校验的自包含交互式架构图、流程图、时序图、数据流图和生命周期图。

L4 · 沙盒安装通过 8.0 万 星

nocobase

nocobase

L3 · 安装规范通过 2.5 万 星

dsh-our-free-model

dsh-our-free-model

为 DeepSeek Harness 挂载免登录、免 API Key 的免费前沿模型通道,装完即用,并附用量看板与 OpenAI 兼容本地转

未标注验证等级 8,064 星

dsh-purge

dsh-purge

dsh-purge 是一款 DeepSeek Harness 设置插件,可修改默认副本、权限策略和工具限制,并添加规则卡片以分组应用补丁,支

L5 · 运行验证通过 4,573 星

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 2026-10-09。