LeslieWylie/dsh-gateway-billing0

dsh-gateway-billing

为自建 New API / One API 兼容网关的用户提供单次对话 LLM 计费显示。

AI 分析

核心用途是在 DSH 输入框旁实时展示当前对话消耗的资费。适合自建或使用第三方中转网关、需要精确监控 API 账单开支的用户。

套件
dsh-gateway-billing
版本
0.1.0
授權
MIT
最近更新
2026年8月16日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LeslieWylie/dsh-gateway-billing

所需配置

本 skill 需要在你自己 profile 的 cordis.patch.yml 中为 gateway-billing 这一条目提供 config

配置项说明示例
pricingUrl你的网关的价格表接口地址,需返回 New API / One API 格式的 {data: [{model_name, quota_type, model_ratio, completion_ratio, model_price}, ...]}https://your-gateway.example.com/api/pricing

不配置 pricingUrl 时,composer dock 会明确提示「未配置」,不会报错,也不会显示误导性的计费数字。