@rulvar/openai 1.123.0 → 1.125.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/dist/index.js +25 -19
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -32,13 +32,19 @@ 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
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
35
|
+
* .../gpt-5.6-terra, .../gpt-5.6-luna; the weekly rates audit
|
|
36
|
+
* re-verifies the three pages). The family rows carry ratesVerifiedAt
|
|
37
|
+
* '2026-07-31' (RV814): on that date every row was re-verified against
|
|
38
|
+
* its documented model page, picking up the provider's 2026-07-30
|
|
39
|
+
* price cut on Terra (0.8x across input, cached input, cache write,
|
|
40
|
+
* and output) and Luna (0.2x across the same four) that the
|
|
41
|
+
* thirteenth-experiment live audit caught as drift (RV911). Sol's
|
|
42
|
+
* rates are unchanged and additionally remain billing-CONFIRMED by the
|
|
43
|
+
* 2026-07-30 twelfth-experiment statement reconciliation, which
|
|
44
|
+
* matched all eight per-model per-component dashboard categories to
|
|
45
|
+
* the cent; the new Terra and Luna rates are docs-verified only, and
|
|
46
|
+
* their billing truth is established by the next statement
|
|
47
|
+
* reconciliation over saved exports, never assumed. All
|
|
42
48
|
* three: prompts strictly above 272K input tokens price the FULL
|
|
43
49
|
* request at 2x input and 1.5x output; cache writes bill at 1.25x
|
|
44
50
|
* uncached input. All three accept wire reasoning effort `max`
|
|
@@ -55,26 +61,26 @@ const GPT_56_SOL = responses(105e4, 128e3, {
|
|
|
55
61
|
cacheReadUsdPerMTok: .5,
|
|
56
62
|
cacheWriteUsdPerMTok: 6.25,
|
|
57
63
|
tiers: GPT_56_TIERS,
|
|
58
|
-
ratesVerifiedAt: "2026-07-
|
|
64
|
+
ratesVerifiedAt: "2026-07-31"
|
|
59
65
|
}, { wireMaxEffort: true });
|
|
60
66
|
/** Static seed table of the current model set. */
|
|
61
67
|
const OPENAI_MODELS = {
|
|
62
68
|
"gpt-5.6-sol": GPT_56_SOL,
|
|
63
69
|
"gpt-5.6-terra": responses(105e4, 128e3, {
|
|
64
|
-
inputUsdPerMTok: 2
|
|
65
|
-
outputUsdPerMTok:
|
|
66
|
-
cacheReadUsdPerMTok: .
|
|
67
|
-
cacheWriteUsdPerMTok:
|
|
70
|
+
inputUsdPerMTok: 2,
|
|
71
|
+
outputUsdPerMTok: 12,
|
|
72
|
+
cacheReadUsdPerMTok: .2,
|
|
73
|
+
cacheWriteUsdPerMTok: 2.5,
|
|
68
74
|
tiers: GPT_56_TIERS,
|
|
69
|
-
ratesVerifiedAt: "2026-07-
|
|
75
|
+
ratesVerifiedAt: "2026-07-31"
|
|
70
76
|
}, { wireMaxEffort: true }),
|
|
71
77
|
"gpt-5.6-luna": responses(105e4, 128e3, {
|
|
72
|
-
inputUsdPerMTok:
|
|
73
|
-
outputUsdPerMTok:
|
|
74
|
-
cacheReadUsdPerMTok: .
|
|
75
|
-
cacheWriteUsdPerMTok:
|
|
78
|
+
inputUsdPerMTok: .2,
|
|
79
|
+
outputUsdPerMTok: 1.2,
|
|
80
|
+
cacheReadUsdPerMTok: .02,
|
|
81
|
+
cacheWriteUsdPerMTok: .25,
|
|
76
82
|
tiers: GPT_56_TIERS,
|
|
77
|
-
ratesVerifiedAt: "2026-07-
|
|
83
|
+
ratesVerifiedAt: "2026-07-31"
|
|
78
84
|
}, { wireMaxEffort: true }),
|
|
79
85
|
"gpt-5.6": GPT_56_SOL,
|
|
80
86
|
"gpt-5.5": responses(4e5, 128e3, {
|
|
@@ -121,7 +127,7 @@ const OPENAI_MODELS = {
|
|
|
121
127
|
* silent reinterpretation.
|
|
122
128
|
*/
|
|
123
129
|
const OPENAI_PRICING = {
|
|
124
|
-
pricingVersion: "openai-2026-07-
|
|
130
|
+
pricingVersion: "openai-2026-07-31",
|
|
125
131
|
models: (() => {
|
|
126
132
|
const models = {};
|
|
127
133
|
for (const [name, info] of Object.entries(OPENAI_MODELS)) if (info.caps.pricing !== void 0) models[`openai:${name}`] = info.caps.pricing;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulvar/openai",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.125.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.
|
|
26
|
+
"@rulvar/core": "1.125.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.
|
|
32
|
+
"@rulvar/testing": "1.125.0"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|