mirror of
https://git.sync.wtf/troed/oc-ls-stats.git
synced 2026-08-31 09:43:38 +03:00
bba57e2eb5d81d2e39e498ab2c9d63f874a0ed26
- Track generatePrevNd per slot instead of global generateMaxDecoded - Calculate TPS from delta between consecutive polls - Detect resets when nd drops below previous - Stall (nd == prev) doesn't end generation, just doesn't update TPS - Reset tracking when no slot found
oc-tps
Displays live TPS (tokens per second), average TPS, and average TTFT (time to first token) in the OpenCode session prompt.
Installation
Install from the CLI:
opencode plugin oc-tps@latest --global
Requires opencode 1.3.14 or newer.
Languages
TypeScript
100%
