WZZNNE/DSH-CyberWorkStation--plugins-dsh-price-hint ↗★ 23
dsh-price-hint
在模型选择器上悬停显示每百万Token价格的提示插件 适合需要在切换模型时直观对比输入输出价格,避免高消费的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:WZZNNE/DSH-CyberWorkStation#54855352ddc1a46f62c26ebb8ba6e9e2a4f07875&path:plugins/dsh-price-hint说明文档
阅读完整 README ↗dsh-price-hint
Hover price hints on the dsh model picker: every model entry gets a native tooltip with its input and output price in USD per 1M tokens.
Install
dsh plugin --profile web add dsh-price-hint
Restart dsh afterwards. As part of DSH CyberWorkStation the plugin is registered by setup.cmd from the repository checkout instead.
How it works
- The host half exposes
GET /dsh-price-hint/prices.json, a map from the model's display name to its price hint. Names come from thellm-pi-aiproviders..modelssettings (id + name); prices come from the cost-meter ledger'sconfig.prices.providers(cacheMiss= input,output= output). The file is read on every request, so a refreshed price table applies at once. - The browser half fetches that map at boot and every 30 s, and re-annotates the picker's entries (a
titleattribute) whenever the picker's DOM changes.
The route is GET-only and refuses a foreign Host (DNS rebinding) through dsh-cyberworkstation-kit/fence.
Requirements
dsh-cost-meter-plus provides the price table (~/.dsh/storages/cost-meter/ledger.json); without it the
map is empty and no tooltip appears.