@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/model-registry.cjs
CHANGED
|
@@ -316,16 +316,21 @@ var MODELS = [
|
|
|
316
316
|
maxThinkingLevel: "max"
|
|
317
317
|
},
|
|
318
318
|
// ── xAI (Grok) ─────────────────────────────────────────
|
|
319
|
-
// Grok 4.
|
|
320
|
-
// and knowledge work,
|
|
321
|
-
//
|
|
322
|
-
//
|
|
319
|
+
// Grok 4.7 (released 2026-09-21) — xAI's flagship for coding, agentic tasks,
|
|
320
|
+
// and knowledge work: a new, larger base model with a longer RL run weighted
|
|
321
|
+
// toward hours-long tasks, plus stronger self-verification and long-context
|
|
322
|
+
// management. 500K context, text+image input, and a `reasoning_effort`
|
|
323
|
+
// ladder of low/medium/high default/xhigh (reasoning still can't be fully
|
|
323
324
|
// disabled). $2/$6 per MTok under 200K prompt tokens ($4/$12 at or above),
|
|
324
|
-
// and it's the default model of the Grok Build coding agent. xAI advertises
|
|
325
|
-
//
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
325
|
+
// and it's the default model of the Grok Build coding agent. xAI advertises
|
|
326
|
+
// "no fixed text output limit"; we keep the 131K practical cap for budget
|
|
327
|
+
// predictability and input headroom. (A faster "Grok 4.7 Fast" variant
|
|
328
|
+
// exists but is Cursor/Grok Build-only — not on the public API — so it isn't
|
|
329
|
+
// registered.) Only the newest Grok ships — 4.6/4.5 are superseded and
|
|
330
|
+
// retired; saved sessions on them fall back to this default.
|
|
331
|
+
{
|
|
332
|
+
id: "grok-4.7",
|
|
333
|
+
name: "Grok 4.7",
|
|
329
334
|
provider: "xai",
|
|
330
335
|
contextWindow: 5e5,
|
|
331
336
|
maxOutputTokens: 131072,
|
|
@@ -335,24 +340,6 @@ var MODELS = [
|
|
|
335
340
|
costTier: "medium",
|
|
336
341
|
maxThinkingLevel: "xhigh"
|
|
337
342
|
},
|
|
338
|
-
// Grok 4.5 (released 2026-07-08) — superseded by 4.6 but retained as an explicit option. 500K context, text+image input,
|
|
339
|
-
// configurable `reasoning_effort` (low/medium/high, server default high;
|
|
340
|
-
// reasoning can't be fully disabled). Served over the OpenAI-compatible API
|
|
341
|
-
// at https://api.x.ai/v1 (API key from console.x.ai). xAI hasn't published an
|
|
342
|
-
// official max-output cap for 4.5; 131K matches the Grok Responses ceiling
|
|
343
|
-
// third-party integrations use.
|
|
344
|
-
{
|
|
345
|
-
id: "grok-4.5",
|
|
346
|
-
name: "Grok 4.5",
|
|
347
|
-
provider: "xai",
|
|
348
|
-
contextWindow: 5e5,
|
|
349
|
-
maxOutputTokens: 131072,
|
|
350
|
-
supportsThinking: true,
|
|
351
|
-
supportsImages: true,
|
|
352
|
-
supportsVideo: false,
|
|
353
|
-
costTier: "medium",
|
|
354
|
-
maxThinkingLevel: "high"
|
|
355
|
-
},
|
|
356
343
|
// ── Gemini ─────────────────────────────────────────
|
|
357
344
|
{
|
|
358
345
|
id: "gemini-3.1-flash-lite",
|
|
@@ -541,44 +528,53 @@ var MODELS = [
|
|
|
541
528
|
maxThinkingLevel: "high"
|
|
542
529
|
},
|
|
543
530
|
// ── Xiaomi (MiMo) ──────────────────────────────────────
|
|
544
|
-
//
|
|
545
|
-
//
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
531
|
+
// MiMo-V2.6 series (released 2026-09-22, open-weight: Pro 1.02T/42B-A,
|
|
532
|
+
// Flash 309B/15B-A, plus a 9B Qwen distill not served over the API). Every
|
|
533
|
+
// V2.6 text model is natively full-modal (image + audio + video
|
|
534
|
+
// understanding), so the whole series takes image/video input over the same
|
|
535
|
+
// OpenAI-compatible base64 transport the old omni model used. API prices are
|
|
536
|
+
// unchanged from V2.5. The V2.5 ids (`mimo-v2.5-pro`/`mimo-v2.5`) deprecate
|
|
537
|
+
// on the platform 2026-10-21 and are retired here — saved sessions fall back
|
|
538
|
+
// to the provider default on next start.
|
|
539
|
+
{
|
|
540
|
+
// Coding/agentic flagship — highest open-weight score on Artificial
|
|
541
|
+
// Analysis at launch (46, tied with Grok 4.7).
|
|
542
|
+
id: "mimo-v2.6-pro",
|
|
543
|
+
name: "MiMo-V2.6-Pro",
|
|
549
544
|
provider: "xiaomi",
|
|
550
545
|
contextWindow: 1e6,
|
|
551
546
|
maxOutputTokens: 131072,
|
|
552
547
|
supportsThinking: true,
|
|
553
|
-
supportsImages:
|
|
554
|
-
supportsVideo:
|
|
548
|
+
supportsImages: true,
|
|
549
|
+
supportsVideo: true,
|
|
550
|
+
maxVideoBytes: 36 * 1024 * 1024,
|
|
555
551
|
costTier: "medium",
|
|
556
552
|
maxThinkingLevel: "high",
|
|
557
553
|
authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
|
|
558
554
|
},
|
|
559
|
-
// UltraSpeed: lower-latency sibling of the Pro coding flagship, same
|
|
560
|
-
// text-only capability surface, premium-priced for the throughput gain.
|
|
561
|
-
// API-only — not served over the Token Plan endpoint, so credentials
|
|
562
|
-
// resolve from the distinct API Credits key only (see authStorageKeys doc).
|
|
563
555
|
{
|
|
564
|
-
|
|
565
|
-
|
|
556
|
+
// Low-cost full-modal sibling (~10% of Pro's price class) — the provider's
|
|
557
|
+
// `low` tier, so scout sub-agents and fast routing land here.
|
|
558
|
+
id: "mimo-v2.6-flash",
|
|
559
|
+
name: "MiMo-V2.6-Flash",
|
|
566
560
|
provider: "xiaomi",
|
|
567
561
|
contextWindow: 1e6,
|
|
568
562
|
maxOutputTokens: 131072,
|
|
569
563
|
supportsThinking: true,
|
|
570
|
-
supportsImages:
|
|
571
|
-
supportsVideo:
|
|
572
|
-
|
|
564
|
+
supportsImages: true,
|
|
565
|
+
supportsVideo: true,
|
|
566
|
+
maxVideoBytes: 36 * 1024 * 1024,
|
|
567
|
+
costTier: "low",
|
|
573
568
|
maxThinkingLevel: "high",
|
|
574
|
-
authStorageKeys: [XIAOMI_CREDITS_KEY]
|
|
569
|
+
authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
|
|
575
570
|
},
|
|
576
|
-
//
|
|
577
|
-
//
|
|
578
|
-
//
|
|
571
|
+
// UltraSpeed: lower-latency sibling of the Pro flagship, same full-modal
|
|
572
|
+
// capability surface, premium-priced for the throughput gain. API-only —
|
|
573
|
+
// not served over the Token Plan endpoint, so credentials resolve from the
|
|
574
|
+
// distinct API Credits key only (see authStorageKeys doc).
|
|
579
575
|
{
|
|
580
|
-
id: "mimo-v2.
|
|
581
|
-
name: "MiMo-V2.
|
|
576
|
+
id: "mimo-v2.6-pro-ultraspeed",
|
|
577
|
+
name: "MiMo-V2.6-Pro-UltraSpeed",
|
|
582
578
|
provider: "xiaomi",
|
|
583
579
|
contextWindow: 1e6,
|
|
584
580
|
maxOutputTokens: 131072,
|
|
@@ -586,9 +582,9 @@ var MODELS = [
|
|
|
586
582
|
supportsImages: true,
|
|
587
583
|
supportsVideo: true,
|
|
588
584
|
maxVideoBytes: 36 * 1024 * 1024,
|
|
589
|
-
costTier: "
|
|
585
|
+
costTier: "high",
|
|
590
586
|
maxThinkingLevel: "high",
|
|
591
|
-
authStorageKeys: [
|
|
587
|
+
authStorageKeys: [XIAOMI_CREDITS_KEY]
|
|
592
588
|
},
|
|
593
589
|
// ── DeepSeek ───────────────────────────────────────────
|
|
594
590
|
{
|
|
@@ -724,7 +720,7 @@ function getVideoByteLimit(modelId) {
|
|
|
724
720
|
return model.maxVideoBytes ?? DEFAULT_MAX_VIDEO_BYTES;
|
|
725
721
|
}
|
|
726
722
|
function getDefaultModel(provider) {
|
|
727
|
-
if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.
|
|
723
|
+
if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.6-pro");
|
|
728
724
|
if (provider === "openai") return MODELS.find((m) => m.id === "gpt-5.6-sol");
|
|
729
725
|
if (provider === "gemini") return MODELS.find((m) => m.id === "gemini-3.1-flash-lite");
|
|
730
726
|
if (provider === "glm") return MODELS.find((m) => m.id === "glm-5.3");
|
|
@@ -735,7 +731,7 @@ function getDefaultModel(provider) {
|
|
|
735
731
|
return MODELS.find((m) => m.id === "Qwen/Qwen3-Coder-480B-A35B-Instruct");
|
|
736
732
|
if (provider === "openrouter") return MODELS.find((m) => m.id === "qwen/qwen3.6-plus");
|
|
737
733
|
if (provider === "sakana") return MODELS.find((m) => m.id === "fugu");
|
|
738
|
-
if (provider === "xai") return MODELS.find((m) => m.id === "grok-4.
|
|
734
|
+
if (provider === "xai") return MODELS.find((m) => m.id === "grok-4.7");
|
|
739
735
|
if (provider === "local") {
|
|
740
736
|
return getModelsForProvider("local")[0] ?? PLACEHOLDER_LOCAL_MODEL;
|
|
741
737
|
}
|