@hiper2d/ai-agents 0.8.0 → 0.10.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 +40 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +40 -27
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -894,11 +894,15 @@ var SupportedAiModels = {
|
|
|
894
894
|
temperature: 1,
|
|
895
895
|
tags: ["expensive"]
|
|
896
896
|
},
|
|
897
|
-
// GPT-
|
|
898
|
-
//
|
|
897
|
+
// Sol and Luna moved to GPT-6 on 2026-09-22 (both ids verified against GET /v1/models).
|
|
898
|
+
// GPT-6 ships Astra, Sol and Luna only — there is NO gpt-6-terra, so the Terra slot stays on
|
|
899
|
+
// gpt-5.6-terra, which OpenAI still serves. Both moves are big price cuts: Sol halved
|
|
900
|
+
// ($4/$20 → $2/$10) and Luna halved ($0.20/$1.20 → $0.10/$0.50). Note GPT-6 Sol now
|
|
901
|
+
// undercuts GPT-5.6 Terra ($2/$12) on output at the same input rate, which makes the Terra
|
|
902
|
+
// slot largely redundant — retiring it is a product call, not a catalog one.
|
|
899
903
|
[LLM_CONSTANTS.GPT_SOL]: {
|
|
900
|
-
displayName: "GPT-
|
|
901
|
-
modelApiName: "gpt-
|
|
904
|
+
displayName: "GPT-6 Sol",
|
|
905
|
+
modelApiName: "gpt-6-sol",
|
|
902
906
|
apiKeyName: API_KEY_CONSTANTS.OPENAI,
|
|
903
907
|
hasThinking: true,
|
|
904
908
|
temperature: 1,
|
|
@@ -913,8 +917,8 @@ var SupportedAiModels = {
|
|
|
913
917
|
tags: ["fast", "expensive"]
|
|
914
918
|
},
|
|
915
919
|
[LLM_CONSTANTS.GPT_MINI]: {
|
|
916
|
-
displayName: "GPT-
|
|
917
|
-
modelApiName: "gpt-
|
|
920
|
+
displayName: "GPT-6 Luna",
|
|
921
|
+
modelApiName: "gpt-6-luna",
|
|
918
922
|
apiKeyName: API_KEY_CONSTANTS.OPENAI,
|
|
919
923
|
hasThinking: true,
|
|
920
924
|
temperature: 1,
|
|
@@ -954,10 +958,15 @@ var SupportedAiModels = {
|
|
|
954
958
|
reasoningEffort: "minimal",
|
|
955
959
|
tags: ["fast", "cheap"]
|
|
956
960
|
},
|
|
957
|
-
// Always-on reasoning
|
|
961
|
+
// Always-on reasoning — no non-thinking sibling. Bumped 4.6 → 4.7 on 2026-09-22 (id verified
|
|
962
|
+
// against GET /v1/models). Same price, same 200K extended-context boundary; the context
|
|
963
|
+
// window is 500K. NOTE 4.7 newly accepts `reasoning_effort` (low | medium | high | xhigh,
|
|
964
|
+
// default high) where 4.6 had no knob at all. GrokAgent still sends none, so behaviour is
|
|
965
|
+
// unchanged — but Grok is the app's most expensive model per turn (94% of its output is
|
|
966
|
+
// reasoning), so a lower pin is the obvious lever to measure before anything else.
|
|
958
967
|
[LLM_CONSTANTS.GROK]: {
|
|
959
|
-
displayName: "Grok 4.
|
|
960
|
-
modelApiName: "grok-4.
|
|
968
|
+
displayName: "Grok 4.7",
|
|
969
|
+
modelApiName: "grok-4.7",
|
|
961
970
|
apiKeyName: API_KEY_CONSTANTS.GROK,
|
|
962
971
|
hasThinking: true,
|
|
963
972
|
temperature: 0.7
|
|
@@ -1226,17 +1235,20 @@ var MODEL_PRICING = {
|
|
|
1226
1235
|
extendedContextCacheHitPrice: 2,
|
|
1227
1236
|
extendedContextThresholdTokens: 272e3
|
|
1228
1237
|
},
|
|
1229
|
-
// OpenAI GPT-
|
|
1230
|
-
//
|
|
1231
|
-
// $
|
|
1232
|
-
//
|
|
1238
|
+
// OpenAI GPT-6 Sol and GPT-6 Luna (developers.openai.com/api/docs/pricing, read 2026-09-22),
|
|
1239
|
+
// plus GPT-5.6 Terra, which has no GPT-6 successor and keeps its old rates.
|
|
1240
|
+
// Sol: $2/$10 short, $4/$15 long, cache hits $0.20/$0.40 — half what GPT-5.6 Sol cost.
|
|
1241
|
+
// Luna: $0.10/$0.50 short, $0.20/$0.75 long, cache hits $0.01/$0.02 — also halved.
|
|
1242
|
+
// As with Astra, OpenAI's table doesn't restate the short/long boundary, so we keep the
|
|
1243
|
+
// 272k threshold the 5.6 siblings use. Cache WRITES (Sol $2.50/$5, Luna $0.125/$0.25) are
|
|
1244
|
+
// not modelled: OpenAI caching is automatic and the API only reports hits.
|
|
1233
1245
|
[SupportedAiModels[LLM_CONSTANTS.GPT_SOL].modelApiName]: {
|
|
1234
|
-
inputPrice:
|
|
1235
|
-
outputPrice:
|
|
1236
|
-
cacheHitPrice: 0.
|
|
1237
|
-
extendedContextInputPrice:
|
|
1238
|
-
extendedContextOutputPrice:
|
|
1239
|
-
extendedContextCacheHitPrice: 0.
|
|
1246
|
+
inputPrice: 2,
|
|
1247
|
+
outputPrice: 10,
|
|
1248
|
+
cacheHitPrice: 0.2,
|
|
1249
|
+
extendedContextInputPrice: 4,
|
|
1250
|
+
extendedContextOutputPrice: 15,
|
|
1251
|
+
extendedContextCacheHitPrice: 0.4,
|
|
1240
1252
|
extendedContextThresholdTokens: 272e3
|
|
1241
1253
|
},
|
|
1242
1254
|
[SupportedAiModels[LLM_CONSTANTS.GPT].modelApiName]: {
|
|
@@ -1249,12 +1261,12 @@ var MODEL_PRICING = {
|
|
|
1249
1261
|
extendedContextThresholdTokens: 272e3
|
|
1250
1262
|
},
|
|
1251
1263
|
[SupportedAiModels[LLM_CONSTANTS.GPT_MINI].modelApiName]: {
|
|
1252
|
-
inputPrice: 0.
|
|
1253
|
-
outputPrice:
|
|
1254
|
-
cacheHitPrice: 0.
|
|
1255
|
-
extendedContextInputPrice: 0.
|
|
1256
|
-
extendedContextOutputPrice:
|
|
1257
|
-
extendedContextCacheHitPrice: 0.
|
|
1264
|
+
inputPrice: 0.1,
|
|
1265
|
+
outputPrice: 0.5,
|
|
1266
|
+
cacheHitPrice: 0.01,
|
|
1267
|
+
extendedContextInputPrice: 0.2,
|
|
1268
|
+
extendedContextOutputPrice: 0.75,
|
|
1269
|
+
extendedContextCacheHitPrice: 0.02,
|
|
1258
1270
|
extendedContextThresholdTokens: 272e3
|
|
1259
1271
|
},
|
|
1260
1272
|
// DeepSeek V4 models
|
|
@@ -1366,8 +1378,9 @@ var MODEL_PRICING = {
|
|
|
1366
1378
|
cacheHitPrice: 0.015
|
|
1367
1379
|
},
|
|
1368
1380
|
// Grok models. Cached price is per-model on xAI (not a uniform ratio):
|
|
1369
|
-
// grok-4.
|
|
1370
|
-
// >= 200K tokens, per docs.x.ai/
|
|
1381
|
+
// grok-4.7 is $0.50/M cached vs $2.00/M input, and all rates double for prompts
|
|
1382
|
+
// >= 200K tokens, per docs.x.ai/docs/models (re-verified 2026-09-22 for 4.7).
|
|
1383
|
+
// 4.7 carries over 4.6's rates unchanged — the bump is capability-only, not a reprice.
|
|
1371
1384
|
[SupportedAiModels[LLM_CONSTANTS.GROK].modelApiName]: {
|
|
1372
1385
|
inputPrice: 2,
|
|
1373
1386
|
outputPrice: 6,
|