@hiper2d/ai-agents 0.9.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 CHANGED
@@ -1129,10 +1129,15 @@ var SupportedAiModels = {
1129
1129
  reasoningEffort: "minimal",
1130
1130
  tags: ["fast", "cheap"]
1131
1131
  },
1132
- // Always-on reasoning (xAI default effort "high", cannot be disabled) — no non-thinking sibling
1132
+ // Always-on reasoning — no non-thinking sibling. Bumped 4.6 → 4.7 on 2026-09-22 (id verified
1133
+ // against GET /v1/models). Same price, same 200K extended-context boundary; the context
1134
+ // window is 500K. NOTE 4.7 newly accepts `reasoning_effort` (low | medium | high | xhigh,
1135
+ // default high) where 4.6 had no knob at all. GrokAgent still sends none, so behaviour is
1136
+ // unchanged — but Grok is the app's most expensive model per turn (94% of its output is
1137
+ // reasoning), so a lower pin is the obvious lever to measure before anything else.
1133
1138
  [LLM_CONSTANTS.GROK]: {
1134
- displayName: "Grok 4.6",
1135
- modelApiName: "grok-4.6",
1139
+ displayName: "Grok 4.7",
1140
+ modelApiName: "grok-4.7",
1136
1141
  apiKeyName: API_KEY_CONSTANTS.GROK,
1137
1142
  hasThinking: true,
1138
1143
  temperature: 0.7
@@ -1544,8 +1549,9 @@ var MODEL_PRICING = {
1544
1549
  cacheHitPrice: 0.015
1545
1550
  },
1546
1551
  // Grok models. Cached price is per-model on xAI (not a uniform ratio):
1547
- // grok-4.6 is $0.50/M cached vs $2.00/M input, and all rates double for prompts
1548
- // >= 200K tokens, per docs.x.ai/developers/models (verified 2026-08-12).
1552
+ // grok-4.7 is $0.50/M cached vs $2.00/M input, and all rates double for prompts
1553
+ // >= 200K tokens, per docs.x.ai/docs/models (re-verified 2026-09-22 for 4.7).
1554
+ // 4.7 carries over 4.6's rates unchanged — the bump is capability-only, not a reprice.
1549
1555
  [SupportedAiModels[LLM_CONSTANTS.GROK].modelApiName]: {
1550
1556
  inputPrice: 2,
1551
1557
  outputPrice: 6,