@hiper2d/ai-agents 0.34.0 → 0.35.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 +30 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -565,7 +565,7 @@ declare function getProviderSignatureFields(aiType: string, signature?: string):
|
|
|
565
565
|
* Verified against provider docs 2026-08-30:
|
|
566
566
|
* - OpenAI GPT-5.x: minimal|low|medium|high|xhigh
|
|
567
567
|
* - Anthropic adaptive thinking (Fable 5 / Opus 4.8 / Sonnet 5): low|medium|high|xhigh|max
|
|
568
|
-
* - Gemini 3.x thinkingLevel: minimal|low|medium|high (3.1 Pro and
|
|
568
|
+
* - Gemini 3.x thinkingLevel: minimal|low|medium|high (3.1 Pro, 4 Argon and 4 Hydrogen reject minimal)
|
|
569
569
|
* - Z.AI GLM-5.3 / 5.3-Flash: low|high|max only
|
|
570
570
|
* - DeepSeek V4: low|high|max (the API itself aliases medium → high)
|
|
571
571
|
* - Sakana Fugu (verified live 2026-09-20): high|xhigh|max on every model ("low" → 400 naming
|
package/dist/index.d.ts
CHANGED
|
@@ -565,7 +565,7 @@ declare function getProviderSignatureFields(aiType: string, signature?: string):
|
|
|
565
565
|
* Verified against provider docs 2026-08-30:
|
|
566
566
|
* - OpenAI GPT-5.x: minimal|low|medium|high|xhigh
|
|
567
567
|
* - Anthropic adaptive thinking (Fable 5 / Opus 4.8 / Sonnet 5): low|medium|high|xhigh|max
|
|
568
|
-
* - Gemini 3.x thinkingLevel: minimal|low|medium|high (3.1 Pro and
|
|
568
|
+
* - Gemini 3.x thinkingLevel: minimal|low|medium|high (3.1 Pro, 4 Argon and 4 Hydrogen reject minimal)
|
|
569
569
|
* - Z.AI GLM-5.3 / 5.3-Flash: low|high|max only
|
|
570
570
|
* - DeepSeek V4: low|high|max (the API itself aliases medium → high)
|
|
571
571
|
* - Sakana Fugu (verified live 2026-09-20): high|xhigh|max on every model ("low" → 400 naming
|
package/dist/index.js
CHANGED
|
@@ -1227,14 +1227,27 @@ var SupportedAiModels = {
|
|
|
1227
1227
|
tags: ["expensive"]
|
|
1228
1228
|
},
|
|
1229
1229
|
[LLM_CONSTANTS.GEMINI_FLASH]: {
|
|
1230
|
-
// Repointed 3.6 → 3.7 (2026-08-13) → 3.8 (2026-09-02)
|
|
1231
|
-
//
|
|
1232
|
-
//
|
|
1233
|
-
|
|
1234
|
-
|
|
1230
|
+
// Repointed 3.6 → 3.7 (2026-08-13) → 3.8 (2026-09-02) → Gemini 4 Hydrogen (2026-11-12);
|
|
1231
|
+
// stable picker id, same pattern as gpt — the slot keeps the name `gemini-flash` although
|
|
1232
|
+
// Google dropped "Flash" from the model's name. Id verified against GET /v1beta/models
|
|
1233
|
+
// (1M in / 65K out). Accepts low|medium|high, rejects 'minimal' (400, probed — as did
|
|
1234
|
+
// 3.7 and 3.8 Flash).
|
|
1235
|
+
// Pinned 'low' (3.8 Flash ran 'medium'): Hydrogen is twice the price and thinks about
|
|
1236
|
+
// twice as much per level. Werewolf day-2 vote fixture, 3 runs a level, 2026-11-12:
|
|
1237
|
+
// Hydrogen low 3.4-3.9s 211-263 thinking tokens 0.58-0.60¢
|
|
1238
|
+
// Hydrogen medium 5.4-6.7s 528-761 0.81-0.98¢
|
|
1239
|
+
// Hydrogen high 6.4-7.8s 839-1175 1.03-1.29¢
|
|
1240
|
+
// 3.8 Flash medium 5.1-7.1s 203-315 0.29-0.34¢
|
|
1241
|
+
// 3.8 Flash low 2.1-2.3s 0 0.21¢
|
|
1242
|
+
// So 'low' is the level that thinks as much as the model it replaces did, a little
|
|
1243
|
+
// faster, at twice the cost instead of three times; every run named the same vote target
|
|
1244
|
+
// with a reason as specific. No `temperature` (see the Pro note). No speed tag until it
|
|
1245
|
+
// has 100+ production turns (3.8 Flash had none: p50 9.9s).
|
|
1246
|
+
displayName: "Gemini 4 Hydrogen",
|
|
1247
|
+
modelApiName: "gemini-4-hydrogen",
|
|
1235
1248
|
apiKeyName: API_KEY_CONSTANTS.GOOGLE,
|
|
1236
1249
|
hasThinking: true,
|
|
1237
|
-
reasoningEffort: "
|
|
1250
|
+
reasoningEffort: "low"
|
|
1238
1251
|
},
|
|
1239
1252
|
[LLM_CONSTANTS.GEMINI_LITE]: {
|
|
1240
1253
|
displayName: "Gemini 3.5 Flash Lite",
|
|
@@ -1689,10 +1702,11 @@ var MODEL_PRICING = {
|
|
|
1689
1702
|
[SupportedAiModels[LLM_CONSTANTS.CLAUDE_FABLE].modelApiName]: {
|
|
1690
1703
|
// Full 1M context window at standard pricing (no extended-context premium).
|
|
1691
1704
|
// Fable 5.1 (2026-09-02): same $10/$50 as Fable 5, but cache reads dropped to $0.25/MTok.
|
|
1692
|
-
// Fable 5.2 (2026-11-10):
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1705
|
+
// Fable 5.2 (2026-11-10): $8/$40, cache reads $0.20 (pricing page, 2026-11-11) — 20% under
|
|
1706
|
+
// 5.1's $10/$50/$0.25. Cache writes $10 (5m) / $16 (1h) = the usual 1.25x / 2x of input.
|
|
1707
|
+
inputPrice: 8,
|
|
1708
|
+
outputPrice: 40,
|
|
1709
|
+
cacheHitPrice: 0.2
|
|
1696
1710
|
},
|
|
1697
1711
|
[SupportedAiModels[LLM_CONSTANTS.CLAUDE_OPUS].modelApiName]: {
|
|
1698
1712
|
// Opus 5.5 (2026-09-22): $4/$20, down from Opus 5's $5/$25. Cache reads are 5% of input
|
|
@@ -1741,13 +1755,12 @@ var MODEL_PRICING = {
|
|
|
1741
1755
|
extendedContextThresholdTokens: 2e5
|
|
1742
1756
|
},
|
|
1743
1757
|
[SupportedAiModels[LLM_CONSTANTS.GEMINI_FLASH].modelApiName]: {
|
|
1744
|
-
//
|
|
1745
|
-
//
|
|
1746
|
-
//
|
|
1747
|
-
//
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
outputPrice: 3.75,
|
|
1758
|
+
// Gemini 4 Hydrogen (ai.google.dev pricing page, Standard tier, read 2026-11-12): one
|
|
1759
|
+
// flat tier, twice the input and output rates of the 3.8 Flash it replaced
|
|
1760
|
+
// ($0.75 / $3.75) with the same $0.075 cached rate (5% of input, as on Argon). Implicit
|
|
1761
|
+
// caching only — explicit caching is not supported, so there is no storage cost.
|
|
1762
|
+
inputPrice: 1.5,
|
|
1763
|
+
outputPrice: 7.5,
|
|
1751
1764
|
cacheHitPrice: 0.075
|
|
1752
1765
|
},
|
|
1753
1766
|
[SupportedAiModels[LLM_CONSTANTS.GEMINI_LITE].modelApiName]: {
|