@kenkaiiii/gg-core 5.74.2 → 5.75.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/README.md +68 -0
- package/dist/{chunk-EIFHG5TX.js → chunk-OKCKN76P.js} +72 -21
- package/dist/{chunk-EIFHG5TX.js.map → chunk-OKCKN76P.js.map} +1 -1
- package/dist/index.cjs +73 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/model-registry.cjs +71 -20
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.d.cts +3 -3
- package/dist/model-registry.d.ts +3 -3
- package/dist/model-registry.js +1 -1
- package/package.json +5 -2
package/dist/model-registry.cjs
CHANGED
|
@@ -128,9 +128,10 @@ var USAGE_EXHAUSTED_DEFAULT_MS = 15 * 60 * 1e3;
|
|
|
128
128
|
// src/model-registry.ts
|
|
129
129
|
var MODELS = [
|
|
130
130
|
// ── Anthropic ──────────────────────────────────────────
|
|
131
|
-
// NOTE: Claude Mythos 5 (`claude-mythos-5
|
|
132
|
-
// Project Glasswing
|
|
133
|
-
// users. Re-enable once it's
|
|
131
|
+
// NOTE: Claude Mythos 5.1 (`claude-mythos-5-1`, 2026-09-01) is kept commented
|
|
132
|
+
// out — it's a Project Glasswing model, still "Active (invite only)" in
|
|
133
|
+
// Anthropic's docs and unavailable to most users. Re-enable once it's
|
|
134
|
+
// generally available.
|
|
134
135
|
{
|
|
135
136
|
// Released 2026-09-01 — replaces Fable 5 at the same $10/$50 MTok (cache
|
|
136
137
|
// reads drop to $0.25). Always-on adaptive thinking steered by effort;
|
|
@@ -152,8 +153,8 @@ var MODELS = [
|
|
|
152
153
|
// // Mythos-class model offered through Project Glasswing (limited
|
|
153
154
|
// // availability, invitation-only). Same underlying model as Fable 5.1 with
|
|
154
155
|
// // some safeguards lifted; kept here so approved accounts can select it.
|
|
155
|
-
// id: "claude-mythos-5",
|
|
156
|
-
// name: "Claude Mythos 5",
|
|
156
|
+
// id: "claude-mythos-5-1",
|
|
157
|
+
// name: "Claude Mythos 5.1",
|
|
157
158
|
// provider: "anthropic",
|
|
158
159
|
// contextWindow: 1_000_000,
|
|
159
160
|
// maxOutputTokens: 128_000,
|
|
@@ -199,16 +200,24 @@ var MODELS = [
|
|
|
199
200
|
maxThinkingLevel: "max"
|
|
200
201
|
},
|
|
201
202
|
{
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
// Released 2026-10-07 — replaces Haiku 4.5 at $0.10/$0.50 MTok (prompts
|
|
204
|
+
// up to 100K tokens; $0.50/$2.50 above). 1M context, 128K output, image
|
|
205
|
+
// input. Adaptive thinking with the full effort ladder (low→max, xhigh
|
|
206
|
+
// included; API default `medium`) — manual budget_tokens, non-default
|
|
207
|
+
// sampling params and assistant prefill all 400. No server-side refusal
|
|
208
|
+
// fallback: `fallbacks: "default"` is accepted but a refusal stays a
|
|
209
|
+
// refusal. Haiku 4.5 is retired here — a session that still has it saved
|
|
210
|
+
// falls back to the provider default on next start.
|
|
211
|
+
id: "claude-haiku-5-5",
|
|
212
|
+
name: "Claude Haiku 5.5",
|
|
204
213
|
provider: "anthropic",
|
|
205
|
-
contextWindow:
|
|
206
|
-
maxOutputTokens:
|
|
214
|
+
contextWindow: 1e6,
|
|
215
|
+
maxOutputTokens: 128e3,
|
|
207
216
|
supportsThinking: true,
|
|
208
217
|
supportsImages: true,
|
|
209
218
|
supportsVideo: false,
|
|
210
219
|
costTier: "low",
|
|
211
|
-
maxThinkingLevel: "
|
|
220
|
+
maxThinkingLevel: "max"
|
|
212
221
|
},
|
|
213
222
|
// ── OpenAI (Codex) ─────────────────────────────────────
|
|
214
223
|
{
|
|
@@ -498,6 +507,25 @@ var MODELS = [
|
|
|
498
507
|
costTier: "medium",
|
|
499
508
|
maxThinkingLevel: "high"
|
|
500
509
|
},
|
|
510
|
+
// K2.7 Code HighSpeed — the same model as K2.7 Code served at ~180 tok/s
|
|
511
|
+
// (up to ~260 on short contexts), 256K context (platform.kimi.ai model list,
|
|
512
|
+
// 2026-10-08). The `kimi-k2.7-code` prefix gives it K2.7's always-thinking
|
|
513
|
+
// wire handling in gg-ai. The Kimi For Coding endpoint lists this model as
|
|
514
|
+
// `kimi-for-coding-highspeed`; like `kimi-k2.7-code` and `kimi-k3`, we send
|
|
515
|
+
// the public id there too.
|
|
516
|
+
{
|
|
517
|
+
id: "kimi-k2.7-code-highspeed",
|
|
518
|
+
name: "Kimi K2.7 Code HighSpeed",
|
|
519
|
+
provider: "moonshot",
|
|
520
|
+
contextWindow: 262144,
|
|
521
|
+
maxOutputTokens: 262144,
|
|
522
|
+
supportsThinking: true,
|
|
523
|
+
supportsImages: true,
|
|
524
|
+
supportsVideo: true,
|
|
525
|
+
maxVideoBytes: 100 * 1024 * 1024,
|
|
526
|
+
costTier: "medium",
|
|
527
|
+
maxThinkingLevel: "high"
|
|
528
|
+
},
|
|
501
529
|
// ── Z.AI (GLM) ─────────────────────────────────────────
|
|
502
530
|
// Two GLM entries, both live on the coding endpoint (verified against its
|
|
503
531
|
// /models list). The pre-5.3 ids stay retired: they routed to strictly worse
|
|
@@ -673,23 +701,47 @@ var MODELS = [
|
|
|
673
701
|
// billing follows each backend's rates on the HF account (small free tier).
|
|
674
702
|
// Model ids are Hub repo paths, so they intentionally contain a slash — the
|
|
675
703
|
// same shape local/ vLLM ids already use (`local/vllm/Qwen/Qwen3-32B`).
|
|
704
|
+
// Live GET /v1/models (2026-10-08) is the source for hosts, context and
|
|
705
|
+
// modalities. Qwen3 Coder 480B is retired here: only one tool-calling host
|
|
706
|
+
// (Novita) still served it. We keep bare repo ids (no :auto suffix) so the
|
|
707
|
+
// picker matches what GET /v1/models reports.
|
|
676
708
|
{
|
|
677
|
-
//
|
|
678
|
-
//
|
|
679
|
-
//
|
|
680
|
-
//
|
|
681
|
-
//
|
|
682
|
-
|
|
683
|
-
|
|
709
|
+
// Moonshot's open coding model. Served with tool calling by Novita and
|
|
710
|
+
// DeepInfra at 262K context, with image input (video is a Moonshot-API-only
|
|
711
|
+
// upload path). It always thinks, but the router has no documented effort
|
|
712
|
+
// control for it, so we register it as non-thinking: we never send a
|
|
713
|
+
// reasoning_effort that a host might reject. Output is capped at half the
|
|
714
|
+
// window so the input keeps room.
|
|
715
|
+
id: "moonshotai/Kimi-K2.7-Code",
|
|
716
|
+
name: "Kimi K2.7 Code",
|
|
684
717
|
provider: "huggingface",
|
|
685
718
|
contextWindow: 262144,
|
|
686
719
|
maxOutputTokens: 131072,
|
|
687
720
|
supportsThinking: false,
|
|
688
|
-
supportsImages:
|
|
721
|
+
supportsImages: true,
|
|
689
722
|
supportsVideo: false,
|
|
690
723
|
costTier: "medium",
|
|
691
724
|
maxThinkingLevel: "low"
|
|
692
725
|
},
|
|
726
|
+
{
|
|
727
|
+
// DeepSeek V4.1 Flash open weights: 1M context and image input on four
|
|
728
|
+
// tool-calling hosts (Novita, Fireworks, Baseten, DeepInfra; $0.20–0.30 in /
|
|
729
|
+
// $0.60–1.20 out per MTok). It is listed before gpt-oss so it becomes the
|
|
730
|
+
// low-tier summary model, because its 1M window can take a full long
|
|
731
|
+
// session. Thinking control over the router is unverified, so it is
|
|
732
|
+
// registered as non-thinking. Output is a conservative 131K: hosts don't
|
|
733
|
+
// publish the 384K first-party cap.
|
|
734
|
+
id: "deepseek-ai/DeepSeek-V4.1-Flash",
|
|
735
|
+
name: "DeepSeek V4.1 Flash",
|
|
736
|
+
provider: "huggingface",
|
|
737
|
+
contextWindow: 1048576,
|
|
738
|
+
maxOutputTokens: 131072,
|
|
739
|
+
supportsThinking: false,
|
|
740
|
+
supportsImages: true,
|
|
741
|
+
supportsVideo: false,
|
|
742
|
+
costTier: "low",
|
|
743
|
+
maxThinkingLevel: "low"
|
|
744
|
+
},
|
|
693
745
|
{
|
|
694
746
|
// OpenAI's open-weight 120B MoE (5.1B active) — general-purpose, tool-calling
|
|
695
747
|
// native, adjustable reasoning effort (low/medium/high, default medium) over
|
|
@@ -750,8 +802,7 @@ function getDefaultModel(provider) {
|
|
|
750
802
|
if (provider === "moonshot") return MODELS.find((m) => m.id === "kimi-k3");
|
|
751
803
|
if (provider === "minimax") return MODELS.find((m) => m.id === "MiniMax-M3");
|
|
752
804
|
if (provider === "deepseek") return MODELS.find((m) => m.id === "deepseek-v4-pro");
|
|
753
|
-
if (provider === "huggingface")
|
|
754
|
-
return MODELS.find((m) => m.id === "Qwen/Qwen3-Coder-480B-A35B-Instruct");
|
|
805
|
+
if (provider === "huggingface") return MODELS.find((m) => m.id === "moonshotai/Kimi-K2.7-Code");
|
|
755
806
|
if (provider === "openrouter") return MODELS.find((m) => m.id === "qwen/qwen3.8-max");
|
|
756
807
|
if (provider === "sakana") return MODELS.find((m) => m.id === "fugu");
|
|
757
808
|
if (provider === "xai") return MODELS.find((m) => m.id === "grok-4.7");
|