@hiper2d/ai-agents 0.27.0 → 0.28.1

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.mjs CHANGED
@@ -970,6 +970,9 @@ var SupportedAiModels = {
970
970
  // slot largely redundant — retiring it is a product call, not a catalog one.
971
971
  // Sol → GPT-6.1 Sol on 2026-09-29 (id verified against GET /v1/models; gpt-6-sol is still
972
972
  // served). Same price as GPT-6 Sol; its no-param default effort still measures `medium`.
973
+ // Terra → GPT-6.1 Terra on 2026-10-26 (id verified against GET /v1/models; gpt-5.6-terra is
974
+ // still served). Half the price of 5.6 Terra ($2/$12 → $1/$5) and back in its place below
975
+ // Sol. Its no-param default effort measures `medium`, like its siblings.
973
976
  [LLM_CONSTANTS.GPT_SOL]: {
974
977
  displayName: "GPT-6.1 Sol",
975
978
  modelApiName: "gpt-6.1-sol",
@@ -980,8 +983,8 @@ var SupportedAiModels = {
980
983
  tags: ["expensive"]
981
984
  },
982
985
  [LLM_CONSTANTS.GPT]: {
983
- displayName: "GPT-5.6 Terra",
984
- modelApiName: "gpt-5.6-terra",
986
+ displayName: "GPT-6.1 Terra",
987
+ modelApiName: "gpt-6.1-terra",
985
988
  apiKeyName: API_KEY_CONSTANTS.OPENAI,
986
989
  reasoningEffort: "medium",
987
990
  hasThinking: true,
@@ -1386,30 +1389,37 @@ var MODEL_PRICING = {
1386
1389
  extendedContextCacheHitPrice: 2,
1387
1390
  extendedContextThresholdTokens: 272e3
1388
1391
  },
1389
- // OpenAI GPT-6 Sol and GPT-6 Luna (developers.openai.com/api/docs/pricing, read 2026-09-22),
1390
- // plus GPT-5.6 Terra, which has no GPT-6 successor and keeps its old rates.
1392
+ // OpenAI GPT-6 Sol and GPT-6 Luna (developers.openai.com/api/docs/pricing, read 2026-09-22).
1391
1393
  // Sol: $2/$10 short, $4/$15 long, cache hits $0.20/$0.40 — half what GPT-5.6 Sol cost.
1392
1394
  // Luna: $0.10/$0.50 short, $0.20/$0.75 long, cache hits $0.01/$0.02 — also halved.
1393
1395
  // As with Astra, OpenAI's table doesn't restate the short/long boundary, so we keep the
1394
1396
  // 272k threshold the 5.6 siblings use. Cache WRITES (Sol $2.50/$5, Luna $0.125/$0.25) are
1395
1397
  // not modelled: OpenAI caching is automatic and the API only reports hits.
1396
1398
  // GPT-6.1 Sol (2026-09-29) kept GPT-6 Sol's rates exactly, cache writes included.
1399
+ // Re-read 2026-10-26 with the Terra launch: the page now lists Sol's cache hit at $0.10
1400
+ // (5% of input, the same share as Terra), not the $0.20 recorded on 2026-09-22; Astra and
1401
+ // Luna still show 10%. Followed the page.
1397
1402
  [SupportedAiModels[LLM_CONSTANTS.GPT_SOL].modelApiName]: {
1398
1403
  inputPrice: 2,
1399
1404
  outputPrice: 10,
1400
- cacheHitPrice: 0.2,
1405
+ cacheHitPrice: 0.1,
1401
1406
  extendedContextInputPrice: 4,
1402
1407
  extendedContextOutputPrice: 15,
1403
- extendedContextCacheHitPrice: 0.4,
1408
+ extendedContextCacheHitPrice: 0.2,
1404
1409
  extendedContextThresholdTokens: 272e3
1405
1410
  },
1411
+ // GPT-6.1 Terra (developers.openai.com/api/docs/pricing, read 2026-10-26): $1/$5 short,
1412
+ // cache hits $0.05 (5% of input, like 6.1 Sol), 30m/12h cache writes $1.25/$2.50 — not
1413
+ // modelled, see above. The page's "Long" tab is rendered client-side and embeds no 6.x
1414
+ // rows, so the long-context rates follow the family rule every other entry here uses
1415
+ // (2x input, 1.5x output, 2x cache hit) over the same 272k threshold.
1406
1416
  [SupportedAiModels[LLM_CONSTANTS.GPT].modelApiName]: {
1407
- inputPrice: 2,
1408
- outputPrice: 12,
1409
- cacheHitPrice: 0.2,
1410
- extendedContextInputPrice: 4,
1411
- extendedContextOutputPrice: 18,
1412
- extendedContextCacheHitPrice: 0.4,
1417
+ inputPrice: 1,
1418
+ outputPrice: 5,
1419
+ cacheHitPrice: 0.05,
1420
+ extendedContextInputPrice: 2,
1421
+ extendedContextOutputPrice: 7.5,
1422
+ extendedContextCacheHitPrice: 0.1,
1413
1423
  extendedContextThresholdTokens: 272e3
1414
1424
  },
1415
1425
  [SupportedAiModels[LLM_CONSTANTS.GPT_MINI].modelApiName]: {
@@ -2568,7 +2578,7 @@ ${instruction}`);
2568
2578
  * nowhere to put reasoning items. The system prompt still travels ONLY as `instructions`.
2569
2579
  *
2570
2580
  * Reasoning is readable only within one model family and the API silently omits items it
2571
- * cannot read, so a bot moved between GPT-6 and GPT-5.6 Terra loses its reasoning and keeps
2581
+ * cannot read, so a bot moved between GPT-6 and a GPT-5.6 model loses its reasoning and keeps
2572
2582
  * working. A bot moved to another provider never reaches this code at all: every agent
2573
2583
  * reads only its own field, and a missing one falls back to a plain message.
2574
2584
  */