@diogonzafe/tokenwatch 0.6.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.
@@ -1,4 +1,4 @@
1
- import { a as Tracker } from './index-D9xq0RNg.cjs';
1
+ import { a as Tracker } from './index-CFBI-1ab.cjs';
2
2
 
3
3
  interface TokenUsage {
4
4
  promptTokens?: number;
@@ -1,4 +1,4 @@
1
- import { a as Tracker } from './index-D9xq0RNg.js';
1
+ import { a as Tracker } from './index-CFBI-1ab.js';
2
2
 
3
3
  interface TokenUsage {
4
4
  promptTokens?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diogonzafe/tokenwatch",
3
- "version": "0.6.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": ">=11.0.0",
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-04-23",
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
- "cacheCreationInput": 3.75,
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": 0.55,
599
- "output": 2.19,
600
- "maxInputTokens": 65536
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": 8000
1037
+ "maxInputTokens": 32768
1041
1038
  },
1042
1039
  "deepseek-llama3.3-70b": {
1043
1040
  "input": 0.2,
@@ -1316,6 +1313,102 @@
1316
1313
  "cachedInput": 0.3,
1317
1314
  "cacheCreationInput": 3.75,
1318
1315
  "maxInputTokens": 1000000
1316
+ },
1317
+ "gpt-5.5": {
1318
+ "input": 5,
1319
+ "output": 30,
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,
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
1319
1412
  }
1320
1413
  }
1321
1414
  }