@winston.wan/burn-your-money 3.0.2 → 3.0.3
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 +1 -1
- package/src/token-history.js +8 -0
package/package.json
CHANGED
package/src/token-history.js
CHANGED
|
@@ -275,6 +275,14 @@ function main() {
|
|
|
275
275
|
console.log(` 费用: $${stats.total_cost}`);
|
|
276
276
|
console.log('');
|
|
277
277
|
|
|
278
|
+
// Token 价格说明
|
|
279
|
+
console.log('💰 Token 价格说明');
|
|
280
|
+
console.log('─'.repeat(40));
|
|
281
|
+
console.log(' Input: $3.00 / 百万 tokens');
|
|
282
|
+
console.log(' Output: $15.00 / 百万 tokens');
|
|
283
|
+
console.log(' Cache: $0.30 / 百万 tokens (90% 折扣)');
|
|
284
|
+
console.log('');
|
|
285
|
+
|
|
278
286
|
// 有趣的统计
|
|
279
287
|
const totalCostNum = parseFloat(stats.total_cost);
|
|
280
288
|
const totalTokensNum = stats.total_tokens_all;
|