@diogonzafe/tokenwatch 0.7.0 → 0.8.0
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 +13 -10
- package/dist/adapters.cjs +17 -6
- package/dist/adapters.cjs.map +1 -1
- package/dist/adapters.d.cts +2 -1
- package/dist/adapters.d.ts +2 -1
- package/dist/adapters.js +17 -6
- package/dist/adapters.js.map +1 -1
- package/dist/cli.js +1580 -518
- package/dist/cli.js.map +1 -1
- package/dist/exporters.d.cts +1 -1
- package/dist/exporters.d.ts +1 -1
- package/dist/{index-D9xq0RNg.d.cts → index-CFBI-1ab.d.cts} +12 -0
- package/dist/{index-D9xq0RNg.d.ts → index-CFBI-1ab.d.ts} +12 -0
- package/dist/index.cjs +122 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +122 -17
- package/dist/index.js.map +1 -1
- package/dist/langchain.d.cts +1 -1
- package/dist/langchain.d.ts +1 -1
- package/package.json +2 -2
- package/prices.json +96 -9
package/dist/langchain.d.cts
CHANGED
package/dist/langchain.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diogonzafe/tokenwatch",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Transparent wrapper to track LLM API costs in real-time by session, user and model",
|
|
5
5
|
"author": "diogonzafe",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@google/generative-ai": ">=0.21.0",
|
|
62
62
|
"@langchain/core": ">=0.1.0",
|
|
63
63
|
"@opentelemetry/api": ">=1.0.0",
|
|
64
|
-
"better-sqlite3": "
|
|
64
|
+
"better-sqlite3": "^12.10.0",
|
|
65
65
|
"mongodb": ">=6.0.0",
|
|
66
66
|
"mysql2": ">=3.0.0",
|
|
67
67
|
"openai": ">=4.68.0",
|
package/prices.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"updated_at": "2026-
|
|
2
|
+
"updated_at": "2026-06-09",
|
|
3
3
|
"source": "https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json",
|
|
4
4
|
"models": {
|
|
5
5
|
"gpt-4o": {
|
|
@@ -43,14 +43,12 @@
|
|
|
43
43
|
"input": 3,
|
|
44
44
|
"output": 15,
|
|
45
45
|
"cachedInput": 0.3,
|
|
46
|
-
"
|
|
47
|
-
"maxInputTokens": 1000000
|
|
46
|
+
"maxInputTokens": 200000
|
|
48
47
|
},
|
|
49
48
|
"claude-haiku-4-5": {
|
|
50
49
|
"input": 1,
|
|
51
50
|
"output": 5,
|
|
52
51
|
"cachedInput": 0.1,
|
|
53
|
-
"cacheCreationInput": 1.25,
|
|
54
52
|
"maxInputTokens": 200000
|
|
55
53
|
},
|
|
56
54
|
"gemini-2.5-pro": {
|
|
@@ -102,7 +100,6 @@
|
|
|
102
100
|
"input": 3,
|
|
103
101
|
"output": 15,
|
|
104
102
|
"cachedInput": 0.3,
|
|
105
|
-
"cacheCreationInput": 3.75,
|
|
106
103
|
"maxInputTokens": 200000
|
|
107
104
|
},
|
|
108
105
|
"gpt-oss-120b": {
|
|
@@ -595,9 +592,9 @@
|
|
|
595
592
|
"maxInputTokens": 163840
|
|
596
593
|
},
|
|
597
594
|
"deepseek-r1": {
|
|
598
|
-
"input":
|
|
599
|
-
"output":
|
|
600
|
-
"maxInputTokens":
|
|
595
|
+
"input": 1.35,
|
|
596
|
+
"output": 5.4,
|
|
597
|
+
"maxInputTokens": 128000
|
|
601
598
|
},
|
|
602
599
|
"deepseek-v3": {
|
|
603
600
|
"input": 0.27,
|
|
@@ -1037,7 +1034,7 @@
|
|
|
1037
1034
|
"deepseek-r1-distill-llama-70b": {
|
|
1038
1035
|
"input": 0.99,
|
|
1039
1036
|
"output": 0.99,
|
|
1040
|
-
"maxInputTokens":
|
|
1037
|
+
"maxInputTokens": 32768
|
|
1041
1038
|
},
|
|
1042
1039
|
"deepseek-llama3.3-70b": {
|
|
1043
1040
|
"input": 0.2,
|
|
@@ -1321,7 +1318,97 @@
|
|
|
1321
1318
|
"input": 5,
|
|
1322
1319
|
"output": 30,
|
|
1323
1320
|
"cachedInput": 0.5,
|
|
1321
|
+
"maxInputTokens": 1050000
|
|
1322
|
+
},
|
|
1323
|
+
"gpt-5.5-2026-04-23": {
|
|
1324
|
+
"input": 5,
|
|
1325
|
+
"output": 30,
|
|
1326
|
+
"cachedInput": 0.5,
|
|
1327
|
+
"maxInputTokens": 1050000
|
|
1328
|
+
},
|
|
1329
|
+
"gpt-5.5-pro": {
|
|
1330
|
+
"input": 30,
|
|
1331
|
+
"output": 180,
|
|
1332
|
+
"cachedInput": 3,
|
|
1333
|
+
"maxInputTokens": 1050000
|
|
1334
|
+
},
|
|
1335
|
+
"gpt-5.5-pro-2026-04-23": {
|
|
1336
|
+
"input": 30,
|
|
1337
|
+
"output": 180,
|
|
1338
|
+
"cachedInput": 3,
|
|
1339
|
+
"maxInputTokens": 1050000
|
|
1340
|
+
},
|
|
1341
|
+
"gpt-5.4-mini-2026-03-17": {
|
|
1342
|
+
"input": 0.75,
|
|
1343
|
+
"output": 4.5,
|
|
1344
|
+
"cachedInput": 0.075,
|
|
1324
1345
|
"maxInputTokens": 272000
|
|
1346
|
+
},
|
|
1347
|
+
"gpt-5.4-nano-2026-03-17": {
|
|
1348
|
+
"input": 0.2,
|
|
1349
|
+
"output": 1.25,
|
|
1350
|
+
"cachedInput": 0.02,
|
|
1351
|
+
"maxInputTokens": 272000
|
|
1352
|
+
},
|
|
1353
|
+
"gpt-image-2": {
|
|
1354
|
+
"input": 5,
|
|
1355
|
+
"output": 10,
|
|
1356
|
+
"cachedInput": 1.25
|
|
1357
|
+
},
|
|
1358
|
+
"gpt-image-2-2026-04-21": {
|
|
1359
|
+
"input": 5,
|
|
1360
|
+
"output": 10,
|
|
1361
|
+
"cachedInput": 1.25
|
|
1362
|
+
},
|
|
1363
|
+
"gpt-realtime-2": {
|
|
1364
|
+
"input": 4,
|
|
1365
|
+
"output": 16,
|
|
1366
|
+
"cachedInput": 0.4,
|
|
1367
|
+
"maxInputTokens": 32000
|
|
1368
|
+
},
|
|
1369
|
+
"gemini-3.5-flash": {
|
|
1370
|
+
"input": 1.5,
|
|
1371
|
+
"output": 9,
|
|
1372
|
+
"cachedInput": 0.15,
|
|
1373
|
+
"maxInputTokens": 1048576
|
|
1374
|
+
},
|
|
1375
|
+
"gemini-3.1-flash-lite": {
|
|
1376
|
+
"input": 0.25,
|
|
1377
|
+
"output": 1.5,
|
|
1378
|
+
"cachedInput": 0.025,
|
|
1379
|
+
"maxInputTokens": 1048576
|
|
1380
|
+
},
|
|
1381
|
+
"claude-opus-4-8": {
|
|
1382
|
+
"input": 5,
|
|
1383
|
+
"output": 25,
|
|
1384
|
+
"cachedInput": 0.5,
|
|
1385
|
+
"cacheCreationInput": 6.25,
|
|
1386
|
+
"maxInputTokens": 1000000
|
|
1387
|
+
},
|
|
1388
|
+
"claude-opus-4-8@default": {
|
|
1389
|
+
"input": 5,
|
|
1390
|
+
"output": 25,
|
|
1391
|
+
"cachedInput": 0.5,
|
|
1392
|
+
"cacheCreationInput": 6.25,
|
|
1393
|
+
"maxInputTokens": 1000000
|
|
1394
|
+
},
|
|
1395
|
+
"claude-4-sonnet": {
|
|
1396
|
+
"input": 3,
|
|
1397
|
+
"output": 15,
|
|
1398
|
+
"cachedInput": 0.3,
|
|
1399
|
+
"maxInputTokens": 200000
|
|
1400
|
+
},
|
|
1401
|
+
"claude-4-opus": {
|
|
1402
|
+
"input": 5,
|
|
1403
|
+
"output": 25,
|
|
1404
|
+
"cachedInput": 0.5,
|
|
1405
|
+
"maxInputTokens": 200000
|
|
1406
|
+
},
|
|
1407
|
+
"claude-3-7-sonnet": {
|
|
1408
|
+
"input": 3,
|
|
1409
|
+
"output": 15,
|
|
1410
|
+
"cachedInput": 0.3,
|
|
1411
|
+
"maxInputTokens": 200000
|
|
1325
1412
|
}
|
|
1326
1413
|
}
|
|
1327
1414
|
}
|