@hiper2d/ai-agents 0.27.0 → 0.28.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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +23 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1480,7 +1480,7 @@ declare class Gpt5Agent extends AbstractAgent {
|
|
|
1480
1480
|
* nowhere to put reasoning items. The system prompt still travels ONLY as `instructions`.
|
|
1481
1481
|
*
|
|
1482
1482
|
* Reasoning is readable only within one model family and the API silently omits items it
|
|
1483
|
-
* cannot read, so a bot moved between GPT-6 and GPT-5.6
|
|
1483
|
+
* cannot read, so a bot moved between GPT-6 and a GPT-5.6 model loses its reasoning and keeps
|
|
1484
1484
|
* working. A bot moved to another provider never reaches this code at all: every agent
|
|
1485
1485
|
* reads only its own field, and a missing one falls back to a plain message.
|
|
1486
1486
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1480,7 +1480,7 @@ declare class Gpt5Agent extends AbstractAgent {
|
|
|
1480
1480
|
* nowhere to put reasoning items. The system prompt still travels ONLY as `instructions`.
|
|
1481
1481
|
*
|
|
1482
1482
|
* Reasoning is readable only within one model family and the API silently omits items it
|
|
1483
|
-
* cannot read, so a bot moved between GPT-6 and GPT-5.6
|
|
1483
|
+
* cannot read, so a bot moved between GPT-6 and a GPT-5.6 model loses its reasoning and keeps
|
|
1484
1484
|
* working. A bot moved to another provider never reaches this code at all: every agent
|
|
1485
1485
|
* reads only its own field, and a missing one falls back to a plain message.
|
|
1486
1486
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1148,6 +1148,9 @@ var SupportedAiModels = {
|
|
|
1148
1148
|
// slot largely redundant — retiring it is a product call, not a catalog one.
|
|
1149
1149
|
// Sol → GPT-6.1 Sol on 2026-09-29 (id verified against GET /v1/models; gpt-6-sol is still
|
|
1150
1150
|
// served). Same price as GPT-6 Sol; its no-param default effort still measures `medium`.
|
|
1151
|
+
// Terra → GPT-6.1 Terra on 2026-10-26 (id verified against GET /v1/models; gpt-5.6-terra is
|
|
1152
|
+
// still served). Half the price of 5.6 Terra ($2/$12 → $1/$5) and back in its place below
|
|
1153
|
+
// Sol. Its no-param default effort measures `medium`, like its siblings.
|
|
1151
1154
|
[LLM_CONSTANTS.GPT_SOL]: {
|
|
1152
1155
|
displayName: "GPT-6.1 Sol",
|
|
1153
1156
|
modelApiName: "gpt-6.1-sol",
|
|
@@ -1158,8 +1161,8 @@ var SupportedAiModels = {
|
|
|
1158
1161
|
tags: ["expensive"]
|
|
1159
1162
|
},
|
|
1160
1163
|
[LLM_CONSTANTS.GPT]: {
|
|
1161
|
-
displayName: "GPT-
|
|
1162
|
-
modelApiName: "gpt-
|
|
1164
|
+
displayName: "GPT-6.1 Terra",
|
|
1165
|
+
modelApiName: "gpt-6.1-terra",
|
|
1163
1166
|
apiKeyName: API_KEY_CONSTANTS.OPENAI,
|
|
1164
1167
|
reasoningEffort: "medium",
|
|
1165
1168
|
hasThinking: true,
|
|
@@ -1564,30 +1567,37 @@ var MODEL_PRICING = {
|
|
|
1564
1567
|
extendedContextCacheHitPrice: 2,
|
|
1565
1568
|
extendedContextThresholdTokens: 272e3
|
|
1566
1569
|
},
|
|
1567
|
-
// OpenAI GPT-6 Sol and GPT-6 Luna (developers.openai.com/api/docs/pricing, read 2026-09-22)
|
|
1568
|
-
// plus GPT-5.6 Terra, which has no GPT-6 successor and keeps its old rates.
|
|
1570
|
+
// OpenAI GPT-6 Sol and GPT-6 Luna (developers.openai.com/api/docs/pricing, read 2026-09-22).
|
|
1569
1571
|
// Sol: $2/$10 short, $4/$15 long, cache hits $0.20/$0.40 — half what GPT-5.6 Sol cost.
|
|
1570
1572
|
// Luna: $0.10/$0.50 short, $0.20/$0.75 long, cache hits $0.01/$0.02 — also halved.
|
|
1571
1573
|
// As with Astra, OpenAI's table doesn't restate the short/long boundary, so we keep the
|
|
1572
1574
|
// 272k threshold the 5.6 siblings use. Cache WRITES (Sol $2.50/$5, Luna $0.125/$0.25) are
|
|
1573
1575
|
// not modelled: OpenAI caching is automatic and the API only reports hits.
|
|
1574
1576
|
// GPT-6.1 Sol (2026-09-29) kept GPT-6 Sol's rates exactly, cache writes included.
|
|
1577
|
+
// Re-read 2026-10-26 with the Terra launch: the page now lists Sol's cache hit at $0.10
|
|
1578
|
+
// (5% of input, the same share as Terra), not the $0.20 recorded on 2026-09-22; Astra and
|
|
1579
|
+
// Luna still show 10%. Followed the page.
|
|
1575
1580
|
[SupportedAiModels[LLM_CONSTANTS.GPT_SOL].modelApiName]: {
|
|
1576
1581
|
inputPrice: 2,
|
|
1577
1582
|
outputPrice: 10,
|
|
1578
|
-
cacheHitPrice: 0.
|
|
1583
|
+
cacheHitPrice: 0.1,
|
|
1579
1584
|
extendedContextInputPrice: 4,
|
|
1580
1585
|
extendedContextOutputPrice: 15,
|
|
1581
|
-
extendedContextCacheHitPrice: 0.
|
|
1586
|
+
extendedContextCacheHitPrice: 0.2,
|
|
1582
1587
|
extendedContextThresholdTokens: 272e3
|
|
1583
1588
|
},
|
|
1589
|
+
// GPT-6.1 Terra (developers.openai.com/api/docs/pricing, read 2026-10-26): $1/$5 short,
|
|
1590
|
+
// cache hits $0.05 (5% of input, like 6.1 Sol), 30m/12h cache writes $1.25/$2.50 — not
|
|
1591
|
+
// modelled, see above. The page's "Long" tab is rendered client-side and embeds no 6.x
|
|
1592
|
+
// rows, so the long-context rates follow the family rule every other entry here uses
|
|
1593
|
+
// (2x input, 1.5x output, 2x cache hit) over the same 272k threshold.
|
|
1584
1594
|
[SupportedAiModels[LLM_CONSTANTS.GPT].modelApiName]: {
|
|
1585
|
-
inputPrice:
|
|
1586
|
-
outputPrice:
|
|
1587
|
-
cacheHitPrice: 0.
|
|
1588
|
-
extendedContextInputPrice:
|
|
1589
|
-
extendedContextOutputPrice:
|
|
1590
|
-
extendedContextCacheHitPrice: 0.
|
|
1595
|
+
inputPrice: 1,
|
|
1596
|
+
outputPrice: 5,
|
|
1597
|
+
cacheHitPrice: 0.05,
|
|
1598
|
+
extendedContextInputPrice: 2,
|
|
1599
|
+
extendedContextOutputPrice: 7.5,
|
|
1600
|
+
extendedContextCacheHitPrice: 0.1,
|
|
1591
1601
|
extendedContextThresholdTokens: 272e3
|
|
1592
1602
|
},
|
|
1593
1603
|
[SupportedAiModels[LLM_CONSTANTS.GPT_MINI].modelApiName]: {
|
|
@@ -2746,7 +2756,7 @@ ${instruction}`);
|
|
|
2746
2756
|
* nowhere to put reasoning items. The system prompt still travels ONLY as `instructions`.
|
|
2747
2757
|
*
|
|
2748
2758
|
* Reasoning is readable only within one model family and the API silently omits items it
|
|
2749
|
-
* cannot read, so a bot moved between GPT-6 and GPT-5.6
|
|
2759
|
+
* cannot read, so a bot moved between GPT-6 and a GPT-5.6 model loses its reasoning and keeps
|
|
2750
2760
|
* working. A bot moved to another provider never reaches this code at all: every agent
|
|
2751
2761
|
* reads only its own field, and a missing one falls back to a plain message.
|
|
2752
2762
|
*/
|