nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:hgrh6268-lgtm/dsh-session-rate-cards
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
在 Web GUI 的输入框下方新增一个实时费用读数:它按 每条 assistant 消息实际回报的 token 用量,用该条消息所用模型的单价和当时的峰谷时段计价,显示当前会话累计的人民币费用。鼠标悬停可看到输入、缓存命中、缓存写入、输出、最近模型和峰谷时段的明细。
同时在 Settings → 会话费用 提供一个模型定价面板:内置模型和自定义模型都会列出,可以改价、恢复默认、新增模型。
dsh plugin --profile web add dsh-session-rate-cards
装完刷新页面即可生效(client 端立即注入,不需要重启 dsh web)。要求 DSH >=0.2.1-rc.2(见 package.json 的 engines.dsh)。
assistant/message 按它自己的 source.model 计价;同一条 step 的重试/重复结算会替换而不是重复累加;失败但仍回报了 usage 的 assistant/attempt 也会计入。| 模型 | 输入(缓存未命中) | 输入(缓存命中) | 输出 |
|---|---|---|---|
deepseek-flash(含 v4-flash / v4.1-flash 等别名) |
高峰 2 元 / 低谷 1 元 | 高峰 0.04 元 / 低谷 0.02 元 | 高峰 8 元 / 低谷 4 元 |
deepseek-v4-pro |
高峰 9 元 / 低谷 4.5 元 | 高峰 0.30 元 / 低谷 0.15 元 | 高峰 27 元 / 低谷 13.5 元 |
上表均为每百万 tokens。
打开 Settings → 会话费用:
stateVersion 随价格指纹变化,旧缓存失效;当前会话在下一次读取或下一条回复时按新价重算。自定义价格保存在插件自己的数据文件里:
$DSH_HOME/storages/session-cost/pricing.json
内置价来自 pricing.js;这个文件只存覆盖项,所以升级插件不会丢掉你改过的价格,也不会把内置价复制成一份死数据。删除这个文件即可回到全部内置价。
计价表按 模型 id 查找,不是按会话或全局平均价。遇到价格表里没有的模型时:
~;~ 随之消失。没有做「自动抓官网价格」:DeepSeek 目前没有机器可读的价格 API,抓 HTML 很容易在页面改版时静默算错。现在的策略是「明确的模型价格表 + 未定价模型显式标记」,宁可显示 ~,也不假装精确。
index.js:Host 端的 sessionCost projection,纯函数折叠 assistant/message / assistant/attempt / llm/retry-started;同时提供 /plugins/session-cost/pricing 读写接口。pricing.js:内置价格表、峰谷判断、模型匹配和价格指纹。client.js:输入框下方的费用读数(conversation.composer.dock,id session-cost,order 2)和 Settings → 会话费用 面板(settings.section,order 60)。A live CNY cost readout under the composer of the DSH Web GUI. Every assistant message is priced with the rate card of the model that produced it and the peak/off-peak window of its timestamp, then summed for the session; hovering shows input, cache-hit, cache-write, output, last model and the current window.
Settings → Session Cost is a rate-card panel: built-in and custom models are listed side by side, prices can be edited, reset to the built-in values, or added for a new model id. Rate cards live in $DSH_HOME/storages/session-cost/pricing.json, so upgrading the plugin never overwrites your prices. A model without a card is priced at Flash rates and marked with ~ instead of pretending to be exact.
dsh plugin --profile web add dsh-session-rate-cards
Requires DSH >=0.2.1-rc.2.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session。