@kenkaiiii/gg-core 5.81.0 → 5.82.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-BNMQ6VWC.js → chunk-6MT277JN.js} +79 -5
- package/dist/chunk-6MT277JN.js.map +1 -0
- package/dist/index.cjs +80 -6
- 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 +76 -4
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-BNMQ6VWC.js.map +0 -1
|
@@ -2,6 +2,9 @@ import {
|
|
|
2
2
|
getAppPaths
|
|
3
3
|
} from "./chunk-EAIPT76S.js";
|
|
4
4
|
|
|
5
|
+
// src/model-registry.ts
|
|
6
|
+
import { resolveFastModeModel } from "@kenkaiiii/gg-ai";
|
|
7
|
+
|
|
5
8
|
// src/oauth/kimi.ts
|
|
6
9
|
import { execFileSync } from "child_process";
|
|
7
10
|
import { randomUUID } from "crypto";
|
|
@@ -1962,9 +1965,8 @@ var MODELS = [
|
|
|
1962
1965
|
// context, 128K output, image input. Same always-on adaptive thinking with
|
|
1963
1966
|
// the full effort ladder (low→max, xhigh included; the API-side default
|
|
1964
1967
|
// effort is `medium`) and the same Fable 5.1 constraints gg-ai already
|
|
1965
|
-
// handles (no forced tool use, thinking can't be disabled).
|
|
1966
|
-
//
|
|
1967
|
-
// $8/$40 pricing — not wired up). Opus 5 is retired here — a session that
|
|
1968
|
+
// handles (no forced tool use, thinking can't be disabled). Fast mode is
|
|
1969
|
+
// the separate `claude-opus-5-5-fast` entry below. Opus 5 is retired here — a session that
|
|
1968
1970
|
// still has it saved falls back to the provider default on next start.
|
|
1969
1971
|
id: "claude-opus-5-5",
|
|
1970
1972
|
name: "Claude Opus 5.5",
|
|
@@ -1981,6 +1983,25 @@ var MODELS = [
|
|
|
1981
1983
|
defaultThinkingLevel: "medium",
|
|
1982
1984
|
maxThinkingLevel: "max"
|
|
1983
1985
|
},
|
|
1986
|
+
{
|
|
1987
|
+
// Opus 5.5 in fast mode (research preview): the same model at up to 2.5x
|
|
1988
|
+
// output tokens/sec, $8/$40 MTok. gg-ai's `stream()` sends it as
|
|
1989
|
+
// `claude-opus-5-5` + `speed: "fast"` + the fast-mode beta. On a Claude
|
|
1990
|
+
// subscription it bills usage credits only — never included plan usage —
|
|
1991
|
+
// and Anthropic 429s "Usage credits are required for fast mode" until they
|
|
1992
|
+
// are turned on. Its prompt cache is separate from standard-speed Opus.
|
|
1993
|
+
id: "claude-opus-5-5-fast",
|
|
1994
|
+
name: "Claude Opus 5.5 Fast",
|
|
1995
|
+
provider: "anthropic",
|
|
1996
|
+
contextWindow: 1e6,
|
|
1997
|
+
maxOutputTokens: 128e3,
|
|
1998
|
+
supportsThinking: true,
|
|
1999
|
+
supportsImages: true,
|
|
2000
|
+
supportsVideo: false,
|
|
2001
|
+
costTier: "high",
|
|
2002
|
+
defaultThinkingLevel: "medium",
|
|
2003
|
+
maxThinkingLevel: "max"
|
|
2004
|
+
},
|
|
1984
2005
|
{
|
|
1985
2006
|
// Released 2026-09-28 — replaces Sonnet 5 at $2/$10 MTok, with the same
|
|
1986
2007
|
// 1M context / 128K output and adaptive thinking, now including xhigh.
|
|
@@ -2048,6 +2069,24 @@ var MODELS = [
|
|
|
2048
2069
|
costTier: "high",
|
|
2049
2070
|
maxThinkingLevel: "ultra"
|
|
2050
2071
|
},
|
|
2072
|
+
{
|
|
2073
|
+
// Codex Fast mode for Astra (catalog `service_tiers: priority`, "2x speed,
|
|
2074
|
+
// increased usage"). gg-ai's `stream()` sends it as `gpt-6-astra` +
|
|
2075
|
+
// `service_tier: "priority"`, exactly what the Codex CLI sends. On a
|
|
2076
|
+
// ChatGPT plan it draws included limits at 2.5x the standard rate.
|
|
2077
|
+
id: "gpt-6-astra-fast",
|
|
2078
|
+
name: "GPT-6 Astra Fast",
|
|
2079
|
+
provider: "openai",
|
|
2080
|
+
contextWindow: 105e4,
|
|
2081
|
+
codexContextWindow: 272e3,
|
|
2082
|
+
maxOutputTokens: 128e3,
|
|
2083
|
+
supportsThinking: true,
|
|
2084
|
+
defaultThinkingLevel: "low",
|
|
2085
|
+
supportsImages: true,
|
|
2086
|
+
supportsVideo: false,
|
|
2087
|
+
costTier: "high",
|
|
2088
|
+
maxThinkingLevel: "ultra"
|
|
2089
|
+
},
|
|
2051
2090
|
// GPT-6 Sol + Luna — released 2026-09-22 below Astra, replacing the whole
|
|
2052
2091
|
// GPT-5.6 family (Sol/Terra/Luna; there is no GPT-6 Terra — OpenAI's Codex
|
|
2053
2092
|
// catalog upgrades 5.6 Terra to 6 Sol). GPT-6.1 Sol (2026-09-29) then replaced
|
|
@@ -2076,6 +2115,22 @@ var MODELS = [
|
|
|
2076
2115
|
costTier: "medium",
|
|
2077
2116
|
maxThinkingLevel: "ultra"
|
|
2078
2117
|
},
|
|
2118
|
+
{
|
|
2119
|
+
// Codex Fast mode for 6.1 Sol ("2x speed, increased usage") — see
|
|
2120
|
+
// `gpt-6-astra-fast` for the wire mapping and billing.
|
|
2121
|
+
id: "gpt-6.1-sol-fast",
|
|
2122
|
+
name: "GPT-6.1 Sol Fast",
|
|
2123
|
+
provider: "openai",
|
|
2124
|
+
contextWindow: 105e4,
|
|
2125
|
+
codexContextWindow: 272e3,
|
|
2126
|
+
maxOutputTokens: 128e3,
|
|
2127
|
+
supportsThinking: true,
|
|
2128
|
+
defaultThinkingLevel: "low",
|
|
2129
|
+
supportsImages: true,
|
|
2130
|
+
supportsVideo: false,
|
|
2131
|
+
costTier: "medium",
|
|
2132
|
+
maxThinkingLevel: "ultra"
|
|
2133
|
+
},
|
|
2079
2134
|
{
|
|
2080
2135
|
// Luna — "Fast and affordable model for easier tasks." (Codex priority 4,
|
|
2081
2136
|
// default medium, needs a Codex client >= 0.155.0). $0.10/$0.50 MTok.
|
|
@@ -2093,6 +2148,23 @@ var MODELS = [
|
|
|
2093
2148
|
costTier: "low",
|
|
2094
2149
|
maxThinkingLevel: "max"
|
|
2095
2150
|
},
|
|
2151
|
+
{
|
|
2152
|
+
// Codex Fast mode for Luna ("1.5x speed") — see `gpt-6-astra-fast` for the
|
|
2153
|
+
// wire mapping and billing. Listed after Luna so compaction summaries
|
|
2154
|
+
// (first `low` OpenAI model) stay on standard-speed Luna.
|
|
2155
|
+
id: "gpt-6-luna-fast",
|
|
2156
|
+
name: "GPT-6 Luna Fast",
|
|
2157
|
+
provider: "openai",
|
|
2158
|
+
contextWindow: 105e4,
|
|
2159
|
+
codexContextWindow: 272e3,
|
|
2160
|
+
maxOutputTokens: 128e3,
|
|
2161
|
+
supportsThinking: true,
|
|
2162
|
+
defaultThinkingLevel: "medium",
|
|
2163
|
+
supportsImages: true,
|
|
2164
|
+
supportsVideo: false,
|
|
2165
|
+
costTier: "low",
|
|
2166
|
+
maxThinkingLevel: "max"
|
|
2167
|
+
},
|
|
2096
2168
|
// ── Sakana (Fugu) ──────────────────────────────────────
|
|
2097
2169
|
// Sakana Fugu is a multi-agent system surfaced as a standard LLM via the
|
|
2098
2170
|
// OpenAI-compatible Sakana API (https://api.sakana.ai/v1). All three take
|
|
@@ -2666,7 +2738,9 @@ var SUMMARY_COST_TIER = {
|
|
|
2666
2738
|
};
|
|
2667
2739
|
function getSummaryModel(provider, currentModelId) {
|
|
2668
2740
|
const tier = SUMMARY_COST_TIER[provider];
|
|
2669
|
-
const tagged = tier ? getModelsForProvider(provider).find(
|
|
2741
|
+
const tagged = tier ? getModelsForProvider(provider).find(
|
|
2742
|
+
(m) => m.costTier === tier && !resolveFastModeModel(provider, m.id).fast
|
|
2743
|
+
) : void 0;
|
|
2670
2744
|
return tagged ?? getModel(currentModelId) ?? getDefaultModel(provider);
|
|
2671
2745
|
}
|
|
2672
2746
|
|
|
@@ -2726,4 +2800,4 @@ export {
|
|
|
2726
2800
|
getDefaultThinkingLevel,
|
|
2727
2801
|
getSummaryModel
|
|
2728
2802
|
};
|
|
2729
|
-
//# sourceMappingURL=chunk-
|
|
2803
|
+
//# sourceMappingURL=chunk-6MT277JN.js.map
|