@opencompress/openclaw 3.0.8 → 3.0.9
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/dist/index.js +1 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
// src/config.ts
|
|
9
|
-
var VERSION = "3.0.
|
|
9
|
+
var VERSION = "3.0.9";
|
|
10
10
|
var PROXY_PORT = 8401;
|
|
11
11
|
var PROXY_HOST = "127.0.0.1";
|
|
12
12
|
var OCC_API = "https://www.opencompress.ai/api";
|
|
@@ -645,7 +645,6 @@ var plugin = {
|
|
|
645
645
|
const s = await res.json();
|
|
646
646
|
const balance = Number(s.balanceUsd || s.balance || 0);
|
|
647
647
|
const calls = s.monthlyApiCalls ?? s.totalCalls ?? 0;
|
|
648
|
-
const rate = s.avgCompressionRate ? `${(Number(s.avgCompressionRate) * 100).toFixed(1)}%` : "N/A";
|
|
649
648
|
const tokensSaved = Number(s.totalOriginalTokens || 0) - Number(s.totalCompressedTokens || 0);
|
|
650
649
|
const totalCharged = Number(s.month?.totalCharged || 0);
|
|
651
650
|
const totalSaved = Number(s.month?.costSaved || s.totalSavings || 0);
|
|
@@ -656,7 +655,6 @@ var plugin = {
|
|
|
656
655
|
"==================",
|
|
657
656
|
`Balance: $${balance.toFixed(4)}`,
|
|
658
657
|
`API calls: ${calls}`,
|
|
659
|
-
`Avg compression: ${rate}`,
|
|
660
658
|
`Tokens saved: ${tokensSaved.toLocaleString()}`,
|
|
661
659
|
`Money saved: $${totalSaved.toFixed(4)}`,
|
|
662
660
|
`Total charged: $${totalCharged.toFixed(4)}`,
|