dsh-webui-perf
awa-123-cw
DeepSeek Harness WebUI 性能优化开关插件:长代码流式渲染/历史加载/高亮缓存优化,设置面板一键开关(with official-package patches)
PROJECT TOPICS
PROJECT README
DSH plugin for the DeepSeek Harness: live conversation cost and DeepSeek account balance in the composer stats row. Currency follows the UI locale: RMB (¥) in the Chinese UI, USD ($) in the English UI.
¥ 0.0123 in the Chinese UI, $ 0.0018 in the English UI. Hover for the input/output/cache-read token breakdown and the pricing tier.GET /user/balance endpoint. A USD account is converted to RMB in the Chinese UI; a CNY account is converted to USD in the English UI (estimated rate, noted in the tooltip). Click to refresh, auto-poll every 60 s.deepseek-v4-pro / deepseek-v4-flash / deepseek-chat / deepseek-reasoner (other DeepSeek models are estimated with the v4-pro tier).npm install dsh-cost
Then mount it in the deployment's cordis.yml (or a profile's cordis.patch.yml):
plugins:
- name: 'dsh-cost'
The web client is composed automatically via the dsh.client declaration (platform: web); no further configuration is required.
The Host half follows the llm-deepseek adapter settings ($DSH_HOME/settings.yaml):
| Setting | Default | Meaning |
|---|---|---|
llm-deepseek.apiKeyEnv |
DEEPSEEK_API_KEY |
Credential reference (environment-variable name) for the API key, resolved through the credentials service ($DSH_HOME/.credentials.yaml / environment / .env) |
llm-deepseek.baseURL |
https://api.deepseek.com |
Base URL of the balance endpoint |
Without an API key the balance shows "余额 — / Balance —"; the cost display is unaffected.
| Model | Input | Output | Cache read |
|---|---|---|---|
| deepseek-v4-pro | $0.435 | $0.87 | $0.003625 |
| deepseek-v4-flash | $0.14 | $0.28 | $0.0028 |
| deepseek-chat | $0.28 | $0.42 | $0.07 |
| deepseek-reasoner | $0.55 | $2.19 | $0.14 |
PRICING table in lib/client.js and USD_CNY in lib/index.js.api.deepseek.com — it is never logged, never placed on a command line, and never returned to the browser./api/plugins/dsh-cost/balance; responses carry balance numbers only (no key) with Cache-Control: no-store.fetch), not through a sandboxed subprocess.tokenUsage projection; discounts and taxes are not included).MIT © 2026 GiantGKL
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。