wuenna/dsh-deepseek-cost ↗★ 0

dsh-deepseek-cost

在Token面板中添加官方计费统计 适合使用DeepSeek官方API并需要实时监控会话花费的用户。

套件
dsh-deepseek-cost
相容性
待驗證
Cordis 依賴範圍
^4.0.2
版本
0.1.0
最近更新
2026年9月23日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:wuenna/dsh-deepseek-cost

Configuration

The price book lives at the top of lib/index.js (FLASH_TIERS, PRO_TIERS, PRICE_BOOK, OFFICIAL_PROVIDERS). Add a tier for a new model id, or a new { from, ... } entry when DeepSeek changes rates. stateVersion must be bumped whenever the fold's meaning changes, so persisted projection checkpoints are discarded instead of forward-applied — it is at 2, the version that added the per-turn ledger; a version-1 checkpoint also fails the state schema, so it is replayed from the session log either way.