@mzzsfy/dsh-usage-stats 0.2.1 → 0.2.2
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/package.json +2 -2
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mzzsfy/dsh-usage-stats",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "0.2.
|
|
3
|
+
"description": "全会话 token 用量与费用统计:仪表盘(趋势/热力图/明细/CSV 导出)、输入区费用条、自定义模型价格,数据全部本地",
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"exports": {
|
package/src/index.js
CHANGED
|
@@ -54,7 +54,7 @@ const SETTINGS_SCHEMA = z.object({
|
|
|
54
54
|
input: z.number().description('输入单价 / 百万 token'),
|
|
55
55
|
output: z.number().description('输出单价 / 百万 token'),
|
|
56
56
|
cacheRead: z.number().description('缓存命中单价 / 百万 token'),
|
|
57
|
-
currency: z.union([z.
|
|
57
|
+
currency: z.union([z.const('CNY'), z.const('USD')]).default('USD').description('单价原生币种'),
|
|
58
58
|
})).default([]).description('自定义模型单价表,命中优先于目录价'),
|
|
59
59
|
})
|
|
60
60
|
|