Proton1917/dsh-live-stats

插件 ⭐ 1 BSD-3-Clause other

DeepSeek Harness Web 的实时令牌估算与真实流式 TPS

catalog 简介:Live token estimates and true streaming TPS for DeepSeek Harness Web

安装

`~` marks a value that still includes the current request's input estimate. Streamed DeepSeek output is counted with the official tokenizer; provider usage replaces all provisional values when it arrives. Exact cache accounting continues to come from DSH's durable token-usage projection. A retry replaces the prior estimate for that step, and an aborted turn removes its unsettled estimate.

TPS is the number of tokens added after the first output sample divided by the elapsed time between the first and latest token-bearing stream events. Final usage, block-end, and assistant-message events correct counts but do not extend that interval. A one-sample response therefore has no TPS value instead of an artificial terminal-event rate.

The plugin replaces the built-in `conversation.composer.dock` entry through the slot registry's documented same-id priority mechanism. It reads public `sessionStats` and `tokenUsage` projections, owns `liveTokenUsage`, and leaves the Harness checkout untouched. A Harness update therefore no longer needs to replay a `StatsLine` source patch.

The package is a profile bundle and mounts itself without a separate home-level patch:

Proton1917/dsh-live-stats 加入你的 DSH 配置(web profile)即可启用。

README

展开完整 README 收起

README 内容为空。