@prestyj/core 5.30.3 → 5.32.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-724LOLDH.js → chunk-7JDCLVUN.js} +89 -2
- package/dist/chunk-7JDCLVUN.js.map +1 -0
- package/dist/index.cjs +90 -3
- 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 +86 -1
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-724LOLDH.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_ai2 = require("@prestyj/ai");
|
|
52
53
|
|
|
53
54
|
// src/oauth/kimi.ts
|
|
54
55
|
var import_node_child_process = require("child_process");
|
|
@@ -206,6 +207,29 @@ var MODELS = [
|
|
|
206
207
|
supportsImages: true,
|
|
207
208
|
supportsVideo: false,
|
|
208
209
|
costTier: "high",
|
|
210
|
+
// Anthropic's API and Claude Code both start the 5.5 family at medium; at a
|
|
211
|
+
// given level 5.5 thinks more than 5, so the ladder ceiling (max) made fresh
|
|
212
|
+
// sessions slow and expensive. Users can still opt up.
|
|
213
|
+
defaultThinkingLevel: "medium",
|
|
214
|
+
maxThinkingLevel: "max"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
// Opus 5.5 in fast mode (research preview): the same model at up to 2.5x
|
|
218
|
+
// output tokens/sec, $8/$40 MTok. @prestyj/ai's `stream()` sends it as
|
|
219
|
+
// `claude-opus-5-5` + `speed: "fast"` + the fast-mode beta. On a Claude
|
|
220
|
+
// subscription it bills usage credits only — never included plan usage —
|
|
221
|
+
// and Anthropic 429s "Usage credits are required for fast mode" until they
|
|
222
|
+
// are turned on. Its prompt cache is separate from standard-speed Opus.
|
|
223
|
+
id: "claude-opus-5-5-fast",
|
|
224
|
+
name: "Claude Opus 5.5 Fast",
|
|
225
|
+
provider: "anthropic",
|
|
226
|
+
contextWindow: 1e6,
|
|
227
|
+
maxOutputTokens: 128e3,
|
|
228
|
+
supportsThinking: true,
|
|
229
|
+
supportsImages: true,
|
|
230
|
+
supportsVideo: false,
|
|
231
|
+
costTier: "high",
|
|
232
|
+
defaultThinkingLevel: "medium",
|
|
209
233
|
maxThinkingLevel: "max"
|
|
210
234
|
},
|
|
211
235
|
{
|
|
@@ -220,6 +244,10 @@ var MODELS = [
|
|
|
220
244
|
supportsImages: true,
|
|
221
245
|
supportsVideo: false,
|
|
222
246
|
costTier: "medium",
|
|
247
|
+
// Anthropic's API and Claude Code both start the 5.5 family at medium; at a
|
|
248
|
+
// given level 5.5 thinks more than 5, so the ladder ceiling (max) made fresh
|
|
249
|
+
// sessions slow and expensive. Users can still opt up.
|
|
250
|
+
defaultThinkingLevel: "medium",
|
|
223
251
|
maxThinkingLevel: "max"
|
|
224
252
|
},
|
|
225
253
|
{
|
|
@@ -240,6 +268,10 @@ var MODELS = [
|
|
|
240
268
|
supportsImages: true,
|
|
241
269
|
supportsVideo: false,
|
|
242
270
|
costTier: "low",
|
|
271
|
+
// Anthropic's API and Claude Code both start the 5.5 family at medium; at a
|
|
272
|
+
// given level 5.5 thinks more than 5, so the ladder ceiling (max) made fresh
|
|
273
|
+
// sessions slow and expensive. Users can still opt up.
|
|
274
|
+
defaultThinkingLevel: "medium",
|
|
243
275
|
maxThinkingLevel: "max"
|
|
244
276
|
},
|
|
245
277
|
// ── OpenAI (Codex) ─────────────────────────────────────
|
|
@@ -267,6 +299,24 @@ var MODELS = [
|
|
|
267
299
|
costTier: "high",
|
|
268
300
|
maxThinkingLevel: "ultra"
|
|
269
301
|
},
|
|
302
|
+
{
|
|
303
|
+
// Codex Fast mode for Astra (catalog `service_tiers: priority`, "2x speed,
|
|
304
|
+
// increased usage"). @prestyj/ai's `stream()` sends it as `gpt-6-astra` +
|
|
305
|
+
// `service_tier: "priority"`, exactly what the Codex CLI sends. On a
|
|
306
|
+
// ChatGPT plan it draws included limits at 2.5x the standard rate.
|
|
307
|
+
id: "gpt-6-astra-fast",
|
|
308
|
+
name: "GPT-6 Astra Fast",
|
|
309
|
+
provider: "openai",
|
|
310
|
+
contextWindow: 105e4,
|
|
311
|
+
codexContextWindow: 272e3,
|
|
312
|
+
maxOutputTokens: 128e3,
|
|
313
|
+
supportsThinking: true,
|
|
314
|
+
defaultThinkingLevel: "low",
|
|
315
|
+
supportsImages: true,
|
|
316
|
+
supportsVideo: false,
|
|
317
|
+
costTier: "high",
|
|
318
|
+
maxThinkingLevel: "ultra"
|
|
319
|
+
},
|
|
270
320
|
// GPT-6 Sol + Luna — released 2026-09-22 below Astra, replacing the whole
|
|
271
321
|
// GPT-5.6 family (Sol/Terra/Luna; there is no GPT-6 Terra — OpenAI's Codex
|
|
272
322
|
// catalog upgrades 5.6 Terra to 6 Sol). GPT-6.1 Sol (2026-09-29) then replaced
|
|
@@ -295,6 +345,22 @@ var MODELS = [
|
|
|
295
345
|
costTier: "medium",
|
|
296
346
|
maxThinkingLevel: "ultra"
|
|
297
347
|
},
|
|
348
|
+
{
|
|
349
|
+
// Codex Fast mode for 6.1 Sol ("2x speed, increased usage") — see
|
|
350
|
+
// `gpt-6-astra-fast` for the wire mapping and billing.
|
|
351
|
+
id: "gpt-6.1-sol-fast",
|
|
352
|
+
name: "GPT-6.1 Sol Fast",
|
|
353
|
+
provider: "openai",
|
|
354
|
+
contextWindow: 105e4,
|
|
355
|
+
codexContextWindow: 272e3,
|
|
356
|
+
maxOutputTokens: 128e3,
|
|
357
|
+
supportsThinking: true,
|
|
358
|
+
defaultThinkingLevel: "low",
|
|
359
|
+
supportsImages: true,
|
|
360
|
+
supportsVideo: false,
|
|
361
|
+
costTier: "medium",
|
|
362
|
+
maxThinkingLevel: "ultra"
|
|
363
|
+
},
|
|
298
364
|
{
|
|
299
365
|
// Luna — "Fast and affordable model for easier tasks." (Codex priority 4,
|
|
300
366
|
// default medium, needs a Codex client >= 0.155.0). $0.10/$0.50 MTok.
|
|
@@ -312,6 +378,23 @@ var MODELS = [
|
|
|
312
378
|
costTier: "low",
|
|
313
379
|
maxThinkingLevel: "max"
|
|
314
380
|
},
|
|
381
|
+
{
|
|
382
|
+
// Codex Fast mode for Luna ("1.5x speed") — see `gpt-6-astra-fast` for the
|
|
383
|
+
// wire mapping and billing. Listed after Luna so compaction summaries
|
|
384
|
+
// (first `low` OpenAI model) stay on standard-speed Luna.
|
|
385
|
+
id: "gpt-6-luna-fast",
|
|
386
|
+
name: "GPT-6 Luna Fast",
|
|
387
|
+
provider: "openai",
|
|
388
|
+
contextWindow: 105e4,
|
|
389
|
+
codexContextWindow: 272e3,
|
|
390
|
+
maxOutputTokens: 128e3,
|
|
391
|
+
supportsThinking: true,
|
|
392
|
+
defaultThinkingLevel: "medium",
|
|
393
|
+
supportsImages: true,
|
|
394
|
+
supportsVideo: false,
|
|
395
|
+
costTier: "low",
|
|
396
|
+
maxThinkingLevel: "max"
|
|
397
|
+
},
|
|
315
398
|
// ── Sakana (Fugu) ──────────────────────────────────────
|
|
316
399
|
// Sakana Fugu is a multi-agent system surfaced as a standard LLM via the
|
|
317
400
|
// OpenAI-compatible Sakana API (https://api.sakana.ai/v1). All three take
|
|
@@ -901,7 +984,9 @@ var SUMMARY_COST_TIER = {
|
|
|
901
984
|
};
|
|
902
985
|
function getSummaryModel(provider, currentModelId) {
|
|
903
986
|
const tier = SUMMARY_COST_TIER[provider];
|
|
904
|
-
const tagged = tier ? getModelsForProvider(provider).find(
|
|
987
|
+
const tagged = tier ? getModelsForProvider(provider).find(
|
|
988
|
+
(m) => m.costTier === tier && !(0, import_ai2.resolveFastModeModel)(provider, m.id).fast
|
|
989
|
+
) : void 0;
|
|
905
990
|
return tagged ?? getModel(currentModelId) ?? getDefaultModel(provider);
|
|
906
991
|
}
|
|
907
992
|
// Annotate the CommonJS export names for ESM import in node:
|