@kenz1117/dsh-ui-usage-billing 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/lib/client.js +5 -5
- package/lib/index.js +30 -6
- package/lib/types/aggregate.d.ts +13 -2
- package/lib/types/client/UsageBilling.d.ts +10 -0
- package/lib/types/client/locales.d.ts +1 -1
- package/lib/types/client/pricing.d.ts +21 -8
- package/lib/types/client/usage-billing-settings.d.ts +10 -14
- package/lib/types/client/vendor-logos.d.ts +7 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -148,6 +148,8 @@ cost(CNY)= (missInput × p_input + cacheHit × p_cacheHit + output × p_outp
|
|
|
148
148
|
|
|
149
149
|
**联网搜索请求按次估算**(issue #15):DSH 的联网搜索绕过对话通道直连官方 `api.deepseek.com`,会话日志只记请求、无用量事件,而开放平台照常计费。插件对这类 `web/deepseek-search-llm-request` 事件按次估值计入费用(默认 0.02 元/次,配置 `searchCallEstimateCny` 可调整;设 0 关闭),并单独累计 `searchCalls` 供面板提示估算口径。
|
|
150
150
|
|
|
151
|
+
**自定义单价(设置 Tab,issue #16)**:结构化条目表(模型 + 可选来源 + 输入/缓存命中/输出 + 币种),不再手编 JSON。来源(中转站域名)留空 = 该模型默认价;填入中转站域名(如 `https://api.my-relay.com`)= 仅该来源的同名模型用此价(同名模型可同时存在默认价与多个来源价,互不覆盖)。显示层按「模型 × 来源」精确匹配重算,命中不到来源时回落该模型默认价,再无则用内置目录价。
|
|
152
|
+
|
|
151
153
|
### 支持模型(2026-08 主流阵容,OpenAI 兼容系列,共 73 款)
|
|
152
154
|
|
|
153
155
|
完整目录见费率 Tab 及源码 `src/client/pricing.ts` 的 `MODEL_CATALOG`,此处每厂商仅列代表型号。
|