@kenkaiiii/gg-core 5.61.1 → 5.62.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-ZVBMFKDR.js} +48 -52
- package/dist/chunk-ZVBMFKDR.js.map +1 -0
- package/dist/index.cjs +47 -51
- 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 +49 -53
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.d.cts +6 -6
- package/dist/model-registry.d.ts +6 -6
- 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
|
@@ -2225,16 +2225,21 @@ var MODELS = [
|
|
|
2225
2225
|
maxThinkingLevel: "max"
|
|
2226
2226
|
},
|
|
2227
2227
|
// ── xAI (Grok) ─────────────────────────────────────────
|
|
2228
|
-
// Grok 4.
|
|
2229
|
-
// and knowledge work,
|
|
2230
|
-
//
|
|
2231
|
-
//
|
|
2228
|
+
// Grok 4.7 (released 2026-09-21) — xAI's flagship for coding, agentic tasks,
|
|
2229
|
+
// and knowledge work: a new, larger base model with a longer RL run weighted
|
|
2230
|
+
// toward hours-long tasks, plus stronger self-verification and long-context
|
|
2231
|
+
// management. 500K context, text+image input, and a `reasoning_effort`
|
|
2232
|
+
// ladder of low/medium/high default/xhigh (reasoning still can't be fully
|
|
2232
2233
|
// 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
|
-
//
|
|
2234
|
+
// and it's the default model of the Grok Build coding agent. xAI advertises
|
|
2235
|
+
// "no fixed text output limit"; we keep the 131K practical cap for budget
|
|
2236
|
+
// predictability and input headroom. (A faster "Grok 4.7 Fast" variant
|
|
2237
|
+
// exists but is Cursor/Grok Build-only — not on the public API — so it isn't
|
|
2238
|
+
// registered.) Only the newest Grok ships — 4.6/4.5 are superseded and
|
|
2239
|
+
// retired; saved sessions on them fall back to this default.
|
|
2235
2240
|
{
|
|
2236
|
-
id: "grok-4.
|
|
2237
|
-
name: "Grok 4.
|
|
2241
|
+
id: "grok-4.7",
|
|
2242
|
+
name: "Grok 4.7",
|
|
2238
2243
|
provider: "xai",
|
|
2239
2244
|
contextWindow: 5e5,
|
|
2240
2245
|
maxOutputTokens: 131072,
|
|
@@ -2244,24 +2249,6 @@ var MODELS = [
|
|
|
2244
2249
|
costTier: "medium",
|
|
2245
2250
|
maxThinkingLevel: "xhigh"
|
|
2246
2251
|
},
|
|
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
2252
|
// ── Gemini ─────────────────────────────────────────
|
|
2266
2253
|
{
|
|
2267
2254
|
id: "gemini-3.1-flash-lite",
|
|
@@ -2450,44 +2437,53 @@ var MODELS = [
|
|
|
2450
2437
|
maxThinkingLevel: "high"
|
|
2451
2438
|
},
|
|
2452
2439
|
// ── Xiaomi (MiMo) ──────────────────────────────────────
|
|
2453
|
-
//
|
|
2454
|
-
//
|
|
2440
|
+
// MiMo-V2.6 series (released 2026-09-22, open-weight: Pro 1.02T/42B-A,
|
|
2441
|
+
// Flash 309B/15B-A, plus a 9B Qwen distill not served over the API). Every
|
|
2442
|
+
// V2.6 text model is natively full-modal (image + audio + video
|
|
2443
|
+
// understanding), so the whole series takes image/video input over the same
|
|
2444
|
+
// OpenAI-compatible base64 transport the old omni model used. API prices are
|
|
2445
|
+
// unchanged from V2.5. The V2.5 ids (`mimo-v2.5-pro`/`mimo-v2.5`) deprecate
|
|
2446
|
+
// on the platform 2026-10-21 and are retired here — saved sessions fall back
|
|
2447
|
+
// to the provider default on next start.
|
|
2455
2448
|
{
|
|
2456
|
-
|
|
2457
|
-
|
|
2449
|
+
// Coding/agentic flagship — highest open-weight score on Artificial
|
|
2450
|
+
// Analysis at launch (46, tied with Grok 4.7).
|
|
2451
|
+
id: "mimo-v2.6-pro",
|
|
2452
|
+
name: "MiMo-V2.6-Pro",
|
|
2458
2453
|
provider: "xiaomi",
|
|
2459
2454
|
contextWindow: 1e6,
|
|
2460
2455
|
maxOutputTokens: 131072,
|
|
2461
2456
|
supportsThinking: true,
|
|
2462
|
-
supportsImages:
|
|
2463
|
-
supportsVideo:
|
|
2457
|
+
supportsImages: true,
|
|
2458
|
+
supportsVideo: true,
|
|
2459
|
+
maxVideoBytes: 36 * 1024 * 1024,
|
|
2464
2460
|
costTier: "medium",
|
|
2465
2461
|
maxThinkingLevel: "high",
|
|
2466
2462
|
authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
|
|
2467
2463
|
},
|
|
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
2464
|
{
|
|
2473
|
-
|
|
2474
|
-
|
|
2465
|
+
// Low-cost full-modal sibling (~10% of Pro's price class) — the provider's
|
|
2466
|
+
// `low` tier, so scout sub-agents and fast routing land here.
|
|
2467
|
+
id: "mimo-v2.6-flash",
|
|
2468
|
+
name: "MiMo-V2.6-Flash",
|
|
2475
2469
|
provider: "xiaomi",
|
|
2476
2470
|
contextWindow: 1e6,
|
|
2477
2471
|
maxOutputTokens: 131072,
|
|
2478
2472
|
supportsThinking: true,
|
|
2479
|
-
supportsImages:
|
|
2480
|
-
supportsVideo:
|
|
2481
|
-
|
|
2473
|
+
supportsImages: true,
|
|
2474
|
+
supportsVideo: true,
|
|
2475
|
+
maxVideoBytes: 36 * 1024 * 1024,
|
|
2476
|
+
costTier: "low",
|
|
2482
2477
|
maxThinkingLevel: "high",
|
|
2483
|
-
authStorageKeys: [XIAOMI_CREDITS_KEY]
|
|
2478
|
+
authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
|
|
2484
2479
|
},
|
|
2485
|
-
//
|
|
2486
|
-
//
|
|
2487
|
-
//
|
|
2480
|
+
// UltraSpeed: lower-latency sibling of the Pro flagship, same full-modal
|
|
2481
|
+
// capability surface, premium-priced for the throughput gain. API-only —
|
|
2482
|
+
// not served over the Token Plan endpoint, so credentials resolve from the
|
|
2483
|
+
// distinct API Credits key only (see authStorageKeys doc).
|
|
2488
2484
|
{
|
|
2489
|
-
id: "mimo-v2.
|
|
2490
|
-
name: "MiMo-V2.
|
|
2485
|
+
id: "mimo-v2.6-pro-ultraspeed",
|
|
2486
|
+
name: "MiMo-V2.6-Pro-UltraSpeed",
|
|
2491
2487
|
provider: "xiaomi",
|
|
2492
2488
|
contextWindow: 1e6,
|
|
2493
2489
|
maxOutputTokens: 131072,
|
|
@@ -2495,9 +2491,9 @@ var MODELS = [
|
|
|
2495
2491
|
supportsImages: true,
|
|
2496
2492
|
supportsVideo: true,
|
|
2497
2493
|
maxVideoBytes: 36 * 1024 * 1024,
|
|
2498
|
-
costTier: "
|
|
2494
|
+
costTier: "high",
|
|
2499
2495
|
maxThinkingLevel: "high",
|
|
2500
|
-
authStorageKeys: [
|
|
2496
|
+
authStorageKeys: [XIAOMI_CREDITS_KEY]
|
|
2501
2497
|
},
|
|
2502
2498
|
// ── DeepSeek ───────────────────────────────────────────
|
|
2503
2499
|
{
|
|
@@ -2633,7 +2629,7 @@ function getVideoByteLimit(modelId) {
|
|
|
2633
2629
|
return model.maxVideoBytes ?? DEFAULT_MAX_VIDEO_BYTES;
|
|
2634
2630
|
}
|
|
2635
2631
|
function getDefaultModel(provider) {
|
|
2636
|
-
if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.
|
|
2632
|
+
if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.6-pro");
|
|
2637
2633
|
if (provider === "openai") return MODELS.find((m) => m.id === "gpt-5.6-sol");
|
|
2638
2634
|
if (provider === "gemini") return MODELS.find((m) => m.id === "gemini-3.1-flash-lite");
|
|
2639
2635
|
if (provider === "glm") return MODELS.find((m) => m.id === "glm-5.3");
|
|
@@ -2644,7 +2640,7 @@ function getDefaultModel(provider) {
|
|
|
2644
2640
|
return MODELS.find((m) => m.id === "Qwen/Qwen3-Coder-480B-A35B-Instruct");
|
|
2645
2641
|
if (provider === "openrouter") return MODELS.find((m) => m.id === "qwen/qwen3.6-plus");
|
|
2646
2642
|
if (provider === "sakana") return MODELS.find((m) => m.id === "fugu");
|
|
2647
|
-
if (provider === "xai") return MODELS.find((m) => m.id === "grok-4.
|
|
2643
|
+
if (provider === "xai") return MODELS.find((m) => m.id === "grok-4.7");
|
|
2648
2644
|
if (provider === "local") {
|
|
2649
2645
|
return getModelsForProvider("local")[0] ?? PLACEHOLDER_LOCAL_MODEL;
|
|
2650
2646
|
}
|