@rulvar/openai 1.120.0 → 1.121.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.
Files changed (2) hide show
  1. package/dist/index.js +21 -8
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -32,7 +32,13 @@ const GPT_56_TIERS = [{
32
32
  /**
33
33
  * GPT-5.6 Sol, Terra, and Luna are three sibling models, not snapshots
34
34
  * of one model (developers.openai.com/api/docs/models/gpt-5.6-sol,
35
- * .../gpt-5.6-terra, .../gpt-5.6-luna; rates verified 2026-07-18). All
35
+ * .../gpt-5.6-terra, .../gpt-5.6-luna; rates verified 2026-07-18
36
+ * against those pages, and CONFIRMED against the provider's own
37
+ * billing categories on 2026-07-30, when the twelfth-experiment
38
+ * statement reconciliation matched all eight per-model per-component
39
+ * dashboard categories to the cent, which is why the family rows carry
40
+ * ratesVerifiedAt '2026-07-30' (RV814); the weekly rates audit
41
+ * re-verifies the three pages). All
36
42
  * three: prompts strictly above 272K input tokens price the FULL
37
43
  * request at 2x input and 1.5x output; cache writes bill at 1.25x
38
44
  * uncached input. All three accept wire reasoning effort `max`
@@ -48,7 +54,8 @@ const GPT_56_SOL = responses(105e4, 128e3, {
48
54
  outputUsdPerMTok: 30,
49
55
  cacheReadUsdPerMTok: .5,
50
56
  cacheWriteUsdPerMTok: 6.25,
51
- tiers: GPT_56_TIERS
57
+ tiers: GPT_56_TIERS,
58
+ ratesVerifiedAt: "2026-07-30"
52
59
  }, { wireMaxEffort: true });
53
60
  /** Static seed table of the current model set. */
54
61
  const OPENAI_MODELS = {
@@ -58,34 +65,40 @@ const OPENAI_MODELS = {
58
65
  outputUsdPerMTok: 15,
59
66
  cacheReadUsdPerMTok: .25,
60
67
  cacheWriteUsdPerMTok: 3.125,
61
- tiers: GPT_56_TIERS
68
+ tiers: GPT_56_TIERS,
69
+ ratesVerifiedAt: "2026-07-30"
62
70
  }, { wireMaxEffort: true }),
63
71
  "gpt-5.6-luna": responses(105e4, 128e3, {
64
72
  inputUsdPerMTok: 1,
65
73
  outputUsdPerMTok: 6,
66
74
  cacheReadUsdPerMTok: .1,
67
75
  cacheWriteUsdPerMTok: 1.25,
68
- tiers: GPT_56_TIERS
76
+ tiers: GPT_56_TIERS,
77
+ ratesVerifiedAt: "2026-07-30"
69
78
  }, { wireMaxEffort: true }),
70
79
  "gpt-5.6": GPT_56_SOL,
71
80
  "gpt-5.5": responses(4e5, 128e3, {
72
81
  inputUsdPerMTok: 5,
73
82
  outputUsdPerMTok: 30,
74
- cacheReadUsdPerMTok: .5
83
+ cacheReadUsdPerMTok: .5,
84
+ ratesVerifiedAt: "2026-07-18"
75
85
  }),
76
86
  "gpt-5.5-pro": responses(4e5, 128e3, {
77
87
  inputUsdPerMTok: 30,
78
- outputUsdPerMTok: 180
88
+ outputUsdPerMTok: 180,
89
+ ratesVerifiedAt: "2026-07-18"
79
90
  }),
80
91
  "gpt-5.4": responses(272e3, 1e5, {
81
92
  inputUsdPerMTok: 2.5,
82
93
  outputUsdPerMTok: 15,
83
- cacheReadUsdPerMTok: .25
94
+ cacheReadUsdPerMTok: .25,
95
+ ratesVerifiedAt: "2026-07-18"
84
96
  }),
85
97
  "gpt-5.4-mini": responses(272e3, 1e5, {
86
98
  inputUsdPerMTok: .75,
87
99
  outputUsdPerMTok: 4.5,
88
- cacheReadUsdPerMTok: .075
100
+ cacheReadUsdPerMTok: .075,
101
+ ratesVerifiedAt: "2026-07-18"
89
102
  })
90
103
  };
91
104
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/openai",
3
- "version": "1.120.0",
3
+ "version": "1.121.0",
4
4
  "description": "Rulvar first-class provider adapter for the OpenAI Responses API, plus the openaiCompatible factory.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -23,13 +23,13 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "openai": "^6.49.0",
26
- "@rulvar/core": "1.120.0"
26
+ "@rulvar/core": "1.121.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^22.20.1",
30
30
  "tsdown": "^0.22.14",
31
31
  "typescript": "~6.0.3",
32
- "@rulvar/testing": "1.120.0"
32
+ "@rulvar/testing": "1.121.0"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",