@kenkaiiii/gg-core 5.80.1 → 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
package/dist/model-registry.cjs
CHANGED
|
@@ -49,6 +49,7 @@ __export(model_registry_exports, {
|
|
|
49
49
|
usesOpenAICodexTransport: () => usesOpenAICodexTransport
|
|
50
50
|
});
|
|
51
51
|
module.exports = __toCommonJS(model_registry_exports);
|
|
52
|
+
var import_gg_ai2 = require("@kenkaiiii/gg-ai");
|
|
52
53
|
|
|
53
54
|
// src/oauth/kimi.ts
|
|
54
55
|
var import_node_child_process = require("child_process");
|
|
@@ -170,9 +171,8 @@ var MODELS = [
|
|
|
170
171
|
// context, 128K output, image input. Same always-on adaptive thinking with
|
|
171
172
|
// the full effort ladder (low→max, xhigh included; the API-side default
|
|
172
173
|
// effort is `medium`) and the same Fable 5.1 constraints gg-ai already
|
|
173
|
-
// handles (no forced tool use, thinking can't be disabled).
|
|
174
|
-
//
|
|
175
|
-
// $8/$40 pricing — not wired up). Opus 5 is retired here — a session that
|
|
174
|
+
// handles (no forced tool use, thinking can't be disabled). Fast mode is
|
|
175
|
+
// the separate `claude-opus-5-5-fast` entry below. Opus 5 is retired here — a session that
|
|
176
176
|
// still has it saved falls back to the provider default on next start.
|
|
177
177
|
id: "claude-opus-5-5",
|
|
178
178
|
name: "Claude Opus 5.5",
|
|
@@ -189,6 +189,25 @@ var MODELS = [
|
|
|
189
189
|
defaultThinkingLevel: "medium",
|
|
190
190
|
maxThinkingLevel: "max"
|
|
191
191
|
},
|
|
192
|
+
{
|
|
193
|
+
// Opus 5.5 in fast mode (research preview): the same model at up to 2.5x
|
|
194
|
+
// output tokens/sec, $8/$40 MTok. gg-ai's `stream()` sends it as
|
|
195
|
+
// `claude-opus-5-5` + `speed: "fast"` + the fast-mode beta. On a Claude
|
|
196
|
+
// subscription it bills usage credits only — never included plan usage —
|
|
197
|
+
// and Anthropic 429s "Usage credits are required for fast mode" until they
|
|
198
|
+
// are turned on. Its prompt cache is separate from standard-speed Opus.
|
|
199
|
+
id: "claude-opus-5-5-fast",
|
|
200
|
+
name: "Claude Opus 5.5 Fast",
|
|
201
|
+
provider: "anthropic",
|
|
202
|
+
contextWindow: 1e6,
|
|
203
|
+
maxOutputTokens: 128e3,
|
|
204
|
+
supportsThinking: true,
|
|
205
|
+
supportsImages: true,
|
|
206
|
+
supportsVideo: false,
|
|
207
|
+
costTier: "high",
|
|
208
|
+
defaultThinkingLevel: "medium",
|
|
209
|
+
maxThinkingLevel: "max"
|
|
210
|
+
},
|
|
192
211
|
{
|
|
193
212
|
// Released 2026-09-28 — replaces Sonnet 5 at $2/$10 MTok, with the same
|
|
194
213
|
// 1M context / 128K output and adaptive thinking, now including xhigh.
|
|
@@ -256,6 +275,24 @@ var MODELS = [
|
|
|
256
275
|
costTier: "high",
|
|
257
276
|
maxThinkingLevel: "ultra"
|
|
258
277
|
},
|
|
278
|
+
{
|
|
279
|
+
// Codex Fast mode for Astra (catalog `service_tiers: priority`, "2x speed,
|
|
280
|
+
// increased usage"). gg-ai's `stream()` sends it as `gpt-6-astra` +
|
|
281
|
+
// `service_tier: "priority"`, exactly what the Codex CLI sends. On a
|
|
282
|
+
// ChatGPT plan it draws included limits at 2.5x the standard rate.
|
|
283
|
+
id: "gpt-6-astra-fast",
|
|
284
|
+
name: "GPT-6 Astra Fast",
|
|
285
|
+
provider: "openai",
|
|
286
|
+
contextWindow: 105e4,
|
|
287
|
+
codexContextWindow: 272e3,
|
|
288
|
+
maxOutputTokens: 128e3,
|
|
289
|
+
supportsThinking: true,
|
|
290
|
+
defaultThinkingLevel: "low",
|
|
291
|
+
supportsImages: true,
|
|
292
|
+
supportsVideo: false,
|
|
293
|
+
costTier: "high",
|
|
294
|
+
maxThinkingLevel: "ultra"
|
|
295
|
+
},
|
|
259
296
|
// GPT-6 Sol + Luna — released 2026-09-22 below Astra, replacing the whole
|
|
260
297
|
// GPT-5.6 family (Sol/Terra/Luna; there is no GPT-6 Terra — OpenAI's Codex
|
|
261
298
|
// catalog upgrades 5.6 Terra to 6 Sol). GPT-6.1 Sol (2026-09-29) then replaced
|
|
@@ -284,6 +321,22 @@ var MODELS = [
|
|
|
284
321
|
costTier: "medium",
|
|
285
322
|
maxThinkingLevel: "ultra"
|
|
286
323
|
},
|
|
324
|
+
{
|
|
325
|
+
// Codex Fast mode for 6.1 Sol ("2x speed, increased usage") — see
|
|
326
|
+
// `gpt-6-astra-fast` for the wire mapping and billing.
|
|
327
|
+
id: "gpt-6.1-sol-fast",
|
|
328
|
+
name: "GPT-6.1 Sol Fast",
|
|
329
|
+
provider: "openai",
|
|
330
|
+
contextWindow: 105e4,
|
|
331
|
+
codexContextWindow: 272e3,
|
|
332
|
+
maxOutputTokens: 128e3,
|
|
333
|
+
supportsThinking: true,
|
|
334
|
+
defaultThinkingLevel: "low",
|
|
335
|
+
supportsImages: true,
|
|
336
|
+
supportsVideo: false,
|
|
337
|
+
costTier: "medium",
|
|
338
|
+
maxThinkingLevel: "ultra"
|
|
339
|
+
},
|
|
287
340
|
{
|
|
288
341
|
// Luna — "Fast and affordable model for easier tasks." (Codex priority 4,
|
|
289
342
|
// default medium, needs a Codex client >= 0.155.0). $0.10/$0.50 MTok.
|
|
@@ -301,6 +354,23 @@ var MODELS = [
|
|
|
301
354
|
costTier: "low",
|
|
302
355
|
maxThinkingLevel: "max"
|
|
303
356
|
},
|
|
357
|
+
{
|
|
358
|
+
// Codex Fast mode for Luna ("1.5x speed") — see `gpt-6-astra-fast` for the
|
|
359
|
+
// wire mapping and billing. Listed after Luna so compaction summaries
|
|
360
|
+
// (first `low` OpenAI model) stay on standard-speed Luna.
|
|
361
|
+
id: "gpt-6-luna-fast",
|
|
362
|
+
name: "GPT-6 Luna Fast",
|
|
363
|
+
provider: "openai",
|
|
364
|
+
contextWindow: 105e4,
|
|
365
|
+
codexContextWindow: 272e3,
|
|
366
|
+
maxOutputTokens: 128e3,
|
|
367
|
+
supportsThinking: true,
|
|
368
|
+
defaultThinkingLevel: "medium",
|
|
369
|
+
supportsImages: true,
|
|
370
|
+
supportsVideo: false,
|
|
371
|
+
costTier: "low",
|
|
372
|
+
maxThinkingLevel: "max"
|
|
373
|
+
},
|
|
304
374
|
// ── Sakana (Fugu) ──────────────────────────────────────
|
|
305
375
|
// Sakana Fugu is a multi-agent system surfaced as a standard LLM via the
|
|
306
376
|
// OpenAI-compatible Sakana API (https://api.sakana.ai/v1). All three take
|
|
@@ -874,7 +944,9 @@ var SUMMARY_COST_TIER = {
|
|
|
874
944
|
};
|
|
875
945
|
function getSummaryModel(provider, currentModelId) {
|
|
876
946
|
const tier = SUMMARY_COST_TIER[provider];
|
|
877
|
-
const tagged = tier ? getModelsForProvider(provider).find(
|
|
947
|
+
const tagged = tier ? getModelsForProvider(provider).find(
|
|
948
|
+
(m) => m.costTier === tier && !(0, import_gg_ai2.resolveFastModeModel)(provider, m.id).fast
|
|
949
|
+
) : void 0;
|
|
878
950
|
return tagged ?? getModel(currentModelId) ?? getDefaultModel(provider);
|
|
879
951
|
}
|
|
880
952
|
// Annotate the CommonJS export names for ESM import in node:
|