@hiper2d/ai-agents 0.39.0 → 0.40.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 +17 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -966,8 +966,8 @@ var SupportedAiModels = {
|
|
|
966
966
|
// OpenAI documents the default for Sol, Luna and the 5.6 family but never states Astra's.
|
|
967
967
|
// Pinning it changes no behaviour today; it stops the default moving under us silently.
|
|
968
968
|
[LLM_CONSTANTS.GPT_ASTRA]: {
|
|
969
|
-
displayName: "GPT-6 Astra",
|
|
970
|
-
modelApiName: "gpt-6-astra",
|
|
969
|
+
displayName: "GPT-6.2 Astra",
|
|
970
|
+
modelApiName: "gpt-6.2-astra",
|
|
971
971
|
apiKeyName: API_KEY_CONSTANTS.OPENAI,
|
|
972
972
|
reasoningEffort: "medium",
|
|
973
973
|
hasThinking: true,
|
|
@@ -985,9 +985,12 @@ var SupportedAiModels = {
|
|
|
985
985
|
// Terra → GPT-6.1 Terra on 2026-10-26 (id verified against GET /v1/models; gpt-5.6-terra is
|
|
986
986
|
// still served). Half the price of 5.6 Terra ($2/$12 → $1/$5) and back in its place below
|
|
987
987
|
// Sol. Its no-param default effort measures `medium`, like its siblings.
|
|
988
|
+
// Astra → GPT-6.2 Astra and Sol → GPT-6.2 Sol on 2026-11-17 (both ids verified against
|
|
989
|
+
// GET /v1/models; gpt-6-astra and gpt-6.1-sol are still served). Both no-param defaults
|
|
990
|
+
// measure `medium`. Astra got 20% cheaper; Sol kept its price.
|
|
988
991
|
[LLM_CONSTANTS.GPT_SOL]: {
|
|
989
|
-
displayName: "GPT-6.
|
|
990
|
-
modelApiName: "gpt-6.
|
|
992
|
+
displayName: "GPT-6.2 Sol",
|
|
993
|
+
modelApiName: "gpt-6.2-sol",
|
|
991
994
|
apiKeyName: API_KEY_CONSTANTS.OPENAI,
|
|
992
995
|
reasoningEffort: "medium",
|
|
993
996
|
hasThinking: true,
|
|
@@ -1436,13 +1439,16 @@ var MODEL_PRICING = {
|
|
|
1436
1439
|
// short context, $20/$75 cache-hit $2 long context. OpenAI's pricing table doesn't restate
|
|
1437
1440
|
// the boundary; we assume the same 272k threshold as the GPT-5.6 siblings. Cache writes
|
|
1438
1441
|
// ($12.50/$25) are not modelled — caching is automatic and we only see hits.
|
|
1442
|
+
// GPT-6.2 Astra (pricing page, read 2026-11-17, both Short and Long tabs): $8/$40 cache-hit
|
|
1443
|
+
// $0.40 short, $16/$60 cache-hit $0.80 long; cache writes $10/$20 (30m/12h), not modelled.
|
|
1444
|
+
// The cache hit is now 5% of input, like Sol and Terra (6 Astra was 10%).
|
|
1439
1445
|
[SupportedAiModels[LLM_CONSTANTS.GPT_ASTRA].modelApiName]: {
|
|
1440
|
-
inputPrice:
|
|
1441
|
-
outputPrice:
|
|
1442
|
-
cacheHitPrice:
|
|
1443
|
-
extendedContextInputPrice:
|
|
1444
|
-
extendedContextOutputPrice:
|
|
1445
|
-
extendedContextCacheHitPrice:
|
|
1446
|
+
inputPrice: 8,
|
|
1447
|
+
outputPrice: 40,
|
|
1448
|
+
cacheHitPrice: 0.4,
|
|
1449
|
+
extendedContextInputPrice: 16,
|
|
1450
|
+
extendedContextOutputPrice: 60,
|
|
1451
|
+
extendedContextCacheHitPrice: 0.8,
|
|
1446
1452
|
extendedContextThresholdTokens: 272e3
|
|
1447
1453
|
},
|
|
1448
1454
|
// OpenAI GPT-6 Sol and GPT-6 Luna (developers.openai.com/api/docs/pricing, read 2026-09-22).
|
|
@@ -1455,6 +1461,7 @@ var MODEL_PRICING = {
|
|
|
1455
1461
|
// Re-read 2026-10-26 with the Terra launch: the page now lists Sol's cache hit at $0.10
|
|
1456
1462
|
// (5% of input, the same share as Terra), not the $0.20 recorded on 2026-09-22; Astra and
|
|
1457
1463
|
// Luna still show 10%. Followed the page.
|
|
1464
|
+
// GPT-6.2 Sol (read 2026-11-17, Short and Long tabs) is priced exactly like 6.1 Sol.
|
|
1458
1465
|
[SupportedAiModels[LLM_CONSTANTS.GPT_SOL].modelApiName]: {
|
|
1459
1466
|
inputPrice: 2,
|
|
1460
1467
|
outputPrice: 10,
|