@kenkaiiii/gg-core 5.61.1 → 5.63.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/{chunk-QZ4423EL.js → chunk-KZ2YPRM7.js} +59 -58
- package/dist/chunk-KZ2YPRM7.js.map +1 -0
- package/dist/index.cjs +58 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/model-registry.cjs +60 -59
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.d.cts +7 -7
- package/dist/model-registry.d.ts +7 -7
- package/dist/model-registry.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-QZ4423EL.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2073,12 +2073,17 @@ var MODELS = [
|
|
|
2073
2073
|
// maxThinkingLevel: "max",
|
|
2074
2074
|
// },
|
|
2075
2075
|
{
|
|
2076
|
-
// Released 2026-
|
|
2077
|
-
//
|
|
2078
|
-
//
|
|
2079
|
-
//
|
|
2080
|
-
|
|
2081
|
-
|
|
2076
|
+
// Released 2026-09-22 — "built for long-running agentic coding and knowledge
|
|
2077
|
+
// work". Fable-5.1-class output at $4/$20 MTok (40% below Opus 5), 1M
|
|
2078
|
+
// context, 128K output, image input. Same always-on adaptive thinking with
|
|
2079
|
+
// the full effort ladder (low→max, xhigh included; the API-side default
|
|
2080
|
+
// effort is `medium`) and the same Fable 5.1 constraints gg-ai already
|
|
2081
|
+
// handles (no forced tool use, thinking can't be disabled). Also eligible
|
|
2082
|
+
// for the gated `speed: "fast"` research preview (waitlist-only, premium
|
|
2083
|
+
// $8/$40 pricing — not wired up). Opus 5 is retired here — a session that
|
|
2084
|
+
// still has it saved falls back to the provider default on next start.
|
|
2085
|
+
id: "claude-opus-5-5",
|
|
2086
|
+
name: "Claude Opus 5.5",
|
|
2082
2087
|
provider: "anthropic",
|
|
2083
2088
|
contextWindow: 1e6,
|
|
2084
2089
|
maxOutputTokens: 128e3,
|
|
@@ -2225,16 +2230,21 @@ var MODELS = [
|
|
|
2225
2230
|
maxThinkingLevel: "max"
|
|
2226
2231
|
},
|
|
2227
2232
|
// ── xAI (Grok) ─────────────────────────────────────────
|
|
2228
|
-
// Grok 4.
|
|
2229
|
-
// and knowledge work,
|
|
2230
|
-
//
|
|
2231
|
-
//
|
|
2233
|
+
// Grok 4.7 (released 2026-09-21) — xAI's flagship for coding, agentic tasks,
|
|
2234
|
+
// and knowledge work: a new, larger base model with a longer RL run weighted
|
|
2235
|
+
// toward hours-long tasks, plus stronger self-verification and long-context
|
|
2236
|
+
// management. 500K context, text+image input, and a `reasoning_effort`
|
|
2237
|
+
// ladder of low/medium/high default/xhigh (reasoning still can't be fully
|
|
2232
2238
|
// disabled). $2/$6 per MTok under 200K prompt tokens ($4/$12 at or above),
|
|
2233
|
-
// and it's the default model of the Grok Build coding agent. xAI advertises
|
|
2234
|
-
//
|
|
2239
|
+
// and it's the default model of the Grok Build coding agent. xAI advertises
|
|
2240
|
+
// "no fixed text output limit"; we keep the 131K practical cap for budget
|
|
2241
|
+
// predictability and input headroom. (A faster "Grok 4.7 Fast" variant
|
|
2242
|
+
// exists but is Cursor/Grok Build-only — not on the public API — so it isn't
|
|
2243
|
+
// registered.) Only the newest Grok ships — 4.6/4.5 are superseded and
|
|
2244
|
+
// retired; saved sessions on them fall back to this default.
|
|
2235
2245
|
{
|
|
2236
|
-
id: "grok-4.
|
|
2237
|
-
name: "Grok 4.
|
|
2246
|
+
id: "grok-4.7",
|
|
2247
|
+
name: "Grok 4.7",
|
|
2238
2248
|
provider: "xai",
|
|
2239
2249
|
contextWindow: 5e5,
|
|
2240
2250
|
maxOutputTokens: 131072,
|
|
@@ -2244,24 +2254,6 @@ var MODELS = [
|
|
|
2244
2254
|
costTier: "medium",
|
|
2245
2255
|
maxThinkingLevel: "xhigh"
|
|
2246
2256
|
},
|
|
2247
|
-
// Grok 4.5 (released 2026-07-08) — superseded by 4.6 but retained as an explicit option. 500K context, text+image input,
|
|
2248
|
-
// configurable `reasoning_effort` (low/medium/high, server default high;
|
|
2249
|
-
// reasoning can't be fully disabled). Served over the OpenAI-compatible API
|
|
2250
|
-
// at https://api.x.ai/v1 (API key from console.x.ai). xAI hasn't published an
|
|
2251
|
-
// official max-output cap for 4.5; 131K matches the Grok Responses ceiling
|
|
2252
|
-
// third-party integrations use.
|
|
2253
|
-
{
|
|
2254
|
-
id: "grok-4.5",
|
|
2255
|
-
name: "Grok 4.5",
|
|
2256
|
-
provider: "xai",
|
|
2257
|
-
contextWindow: 5e5,
|
|
2258
|
-
maxOutputTokens: 131072,
|
|
2259
|
-
supportsThinking: true,
|
|
2260
|
-
supportsImages: true,
|
|
2261
|
-
supportsVideo: false,
|
|
2262
|
-
costTier: "medium",
|
|
2263
|
-
maxThinkingLevel: "high"
|
|
2264
|
-
},
|
|
2265
2257
|
// ── Gemini ─────────────────────────────────────────
|
|
2266
2258
|
{
|
|
2267
2259
|
id: "gemini-3.1-flash-lite",
|
|
@@ -2450,44 +2442,53 @@ var MODELS = [
|
|
|
2450
2442
|
maxThinkingLevel: "high"
|
|
2451
2443
|
},
|
|
2452
2444
|
// ── Xiaomi (MiMo) ──────────────────────────────────────
|
|
2453
|
-
//
|
|
2454
|
-
//
|
|
2445
|
+
// MiMo-V2.6 series (released 2026-09-22, open-weight: Pro 1.02T/42B-A,
|
|
2446
|
+
// Flash 309B/15B-A, plus a 9B Qwen distill not served over the API). Every
|
|
2447
|
+
// V2.6 text model is natively full-modal (image + audio + video
|
|
2448
|
+
// understanding), so the whole series takes image/video input over the same
|
|
2449
|
+
// OpenAI-compatible base64 transport the old omni model used. API prices are
|
|
2450
|
+
// unchanged from V2.5. The V2.5 ids (`mimo-v2.5-pro`/`mimo-v2.5`) deprecate
|
|
2451
|
+
// on the platform 2026-10-21 and are retired here — saved sessions fall back
|
|
2452
|
+
// to the provider default on next start.
|
|
2455
2453
|
{
|
|
2456
|
-
|
|
2457
|
-
|
|
2454
|
+
// Coding/agentic flagship — highest open-weight score on Artificial
|
|
2455
|
+
// Analysis at launch (46, tied with Grok 4.7).
|
|
2456
|
+
id: "mimo-v2.6-pro",
|
|
2457
|
+
name: "MiMo-V2.6-Pro",
|
|
2458
2458
|
provider: "xiaomi",
|
|
2459
2459
|
contextWindow: 1e6,
|
|
2460
2460
|
maxOutputTokens: 131072,
|
|
2461
2461
|
supportsThinking: true,
|
|
2462
|
-
supportsImages:
|
|
2463
|
-
supportsVideo:
|
|
2462
|
+
supportsImages: true,
|
|
2463
|
+
supportsVideo: true,
|
|
2464
|
+
maxVideoBytes: 36 * 1024 * 1024,
|
|
2464
2465
|
costTier: "medium",
|
|
2465
2466
|
maxThinkingLevel: "high",
|
|
2466
2467
|
authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
|
|
2467
2468
|
},
|
|
2468
|
-
// UltraSpeed: lower-latency sibling of the Pro coding flagship, same
|
|
2469
|
-
// text-only capability surface, premium-priced for the throughput gain.
|
|
2470
|
-
// API-only — not served over the Token Plan endpoint, so credentials
|
|
2471
|
-
// resolve from the distinct API Credits key only (see authStorageKeys doc).
|
|
2472
2469
|
{
|
|
2473
|
-
|
|
2474
|
-
|
|
2470
|
+
// Low-cost full-modal sibling (~10% of Pro's price class) — the provider's
|
|
2471
|
+
// `low` tier, so scout sub-agents and fast routing land here.
|
|
2472
|
+
id: "mimo-v2.6-flash",
|
|
2473
|
+
name: "MiMo-V2.6-Flash",
|
|
2475
2474
|
provider: "xiaomi",
|
|
2476
2475
|
contextWindow: 1e6,
|
|
2477
2476
|
maxOutputTokens: 131072,
|
|
2478
2477
|
supportsThinking: true,
|
|
2479
|
-
supportsImages:
|
|
2480
|
-
supportsVideo:
|
|
2481
|
-
|
|
2478
|
+
supportsImages: true,
|
|
2479
|
+
supportsVideo: true,
|
|
2480
|
+
maxVideoBytes: 36 * 1024 * 1024,
|
|
2481
|
+
costTier: "low",
|
|
2482
2482
|
maxThinkingLevel: "high",
|
|
2483
|
-
authStorageKeys: [XIAOMI_CREDITS_KEY]
|
|
2483
|
+
authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
|
|
2484
2484
|
},
|
|
2485
|
-
//
|
|
2486
|
-
//
|
|
2487
|
-
//
|
|
2485
|
+
// UltraSpeed: lower-latency sibling of the Pro flagship, same full-modal
|
|
2486
|
+
// capability surface, premium-priced for the throughput gain. API-only —
|
|
2487
|
+
// not served over the Token Plan endpoint, so credentials resolve from the
|
|
2488
|
+
// distinct API Credits key only (see authStorageKeys doc).
|
|
2488
2489
|
{
|
|
2489
|
-
id: "mimo-v2.
|
|
2490
|
-
name: "MiMo-V2.
|
|
2490
|
+
id: "mimo-v2.6-pro-ultraspeed",
|
|
2491
|
+
name: "MiMo-V2.6-Pro-UltraSpeed",
|
|
2491
2492
|
provider: "xiaomi",
|
|
2492
2493
|
contextWindow: 1e6,
|
|
2493
2494
|
maxOutputTokens: 131072,
|
|
@@ -2495,9 +2496,9 @@ var MODELS = [
|
|
|
2495
2496
|
supportsImages: true,
|
|
2496
2497
|
supportsVideo: true,
|
|
2497
2498
|
maxVideoBytes: 36 * 1024 * 1024,
|
|
2498
|
-
costTier: "
|
|
2499
|
+
costTier: "high",
|
|
2499
2500
|
maxThinkingLevel: "high",
|
|
2500
|
-
authStorageKeys: [
|
|
2501
|
+
authStorageKeys: [XIAOMI_CREDITS_KEY]
|
|
2501
2502
|
},
|
|
2502
2503
|
// ── DeepSeek ───────────────────────────────────────────
|
|
2503
2504
|
{
|
|
@@ -2633,7 +2634,7 @@ function getVideoByteLimit(modelId) {
|
|
|
2633
2634
|
return model.maxVideoBytes ?? DEFAULT_MAX_VIDEO_BYTES;
|
|
2634
2635
|
}
|
|
2635
2636
|
function getDefaultModel(provider) {
|
|
2636
|
-
if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.
|
|
2637
|
+
if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.6-pro");
|
|
2637
2638
|
if (provider === "openai") return MODELS.find((m) => m.id === "gpt-5.6-sol");
|
|
2638
2639
|
if (provider === "gemini") return MODELS.find((m) => m.id === "gemini-3.1-flash-lite");
|
|
2639
2640
|
if (provider === "glm") return MODELS.find((m) => m.id === "glm-5.3");
|
|
@@ -2644,7 +2645,7 @@ function getDefaultModel(provider) {
|
|
|
2644
2645
|
return MODELS.find((m) => m.id === "Qwen/Qwen3-Coder-480B-A35B-Instruct");
|
|
2645
2646
|
if (provider === "openrouter") return MODELS.find((m) => m.id === "qwen/qwen3.6-plus");
|
|
2646
2647
|
if (provider === "sakana") return MODELS.find((m) => m.id === "fugu");
|
|
2647
|
-
if (provider === "xai") return MODELS.find((m) => m.id === "grok-4.
|
|
2648
|
+
if (provider === "xai") return MODELS.find((m) => m.id === "grok-4.7");
|
|
2648
2649
|
if (provider === "local") {
|
|
2649
2650
|
return getModelsForProvider("local")[0] ?? PLACEHOLDER_LOCAL_MODEL;
|
|
2650
2651
|
}
|