uaapple/dsh-ui-cost

uaapple★ 0TypeScript最后同步: 2026-08-20

在 GitHub 打开

DeepSeek Harness Web UI plugin for live token usage and estimated cost

README 摘要

dsh-ui-cost English 中文 Self-contained stats strip with an estimated cost, contributed as a pure DSH browser plugin — no modification to the ui-conversation core , so a DSH/DSH Desktop upgrade that restores the stock core cannot break it. This is a community plugin and is not affiliated with DeepSeek AI. The plugin registers on the same conversation.composer.dock cell as the core stats entry ( id: 'stats' ) with a lower shadowing priority, taking over the whole line: turn/step counts, LLM and tool wall times, TTFT/decode throughput, cache-hit share, billed tokens, and the cost. If the plugin ever crashes, the cell's shadowing retires it and the stock core strip renders instead. Composing this plugin out of cordis.yml removes the whole replacement and the stock strip returns. The cost prices the durable tokenUsage projection (uncached input + cache writes at the cache-miss input rate, cache reads at the hit rate, output at the output rate) at the session's CURRENT model selection, read live from the ui-model-selection model directory — so a model switch re-prices immediately. Rates come from the official Models & Pricing page (CNY per 1M tokens, deepseek-v4-flash / deepseek-v4-pro ) …

在 GitHub 查看完整 README →
皮肤/UIdeepseek-harnessdshdsh-pluginweb ui

分类