@prestyj/core 5.22.2 → 5.23.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-Z3QR45IX.js → chunk-SQLBQOQH.js} +47 -30
- package/dist/chunk-SQLBQOQH.js.map +1 -0
- package/dist/index.cjs +46 -29
- 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/model-registry.cjs +48 -31
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.d.cts +4 -4
- package/dist/model-registry.d.ts +4 -4
- package/dist/model-registry.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-Z3QR45IX.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2456,54 +2456,71 @@ var MODELS = [
|
|
|
2456
2456
|
maxThinkingLevel: "high"
|
|
2457
2457
|
},
|
|
2458
2458
|
// ── Xiaomi (MiMo) ──────────────────────────────────────
|
|
2459
|
-
//
|
|
2460
|
-
//
|
|
2459
|
+
// V2.6 series (2026-09) supersedes V2.5 one-for-one: pro → pro, the omni
|
|
2460
|
+
// `mimo-v2.5` → flash, ultraspeed → ultraspeed. The whole series is now
|
|
2461
|
+
// full-modality, so unlike V2.5-Pro the flagship no longer needs a separate
|
|
2462
|
+
// omni sibling for attachments. V2.5 entries are retired here — a session
|
|
2463
|
+
// that still has one saved falls back to the provider default on next start.
|
|
2464
|
+
//
|
|
2465
|
+
// Capabilities below are measured against the Token Plan host, not taken
|
|
2466
|
+
// from marketing copy: image and video both come back with `image_tokens` /
|
|
2467
|
+
// `video_tokens` in usage, and an oversized `max_tokens` is rejected with
|
|
2468
|
+
// "supports at most 131072 completion tokens". A deliberately oversized
|
|
2469
|
+
// prompt billed 1,048,570 tokens and was accepted, so the window is the
|
|
2470
|
+
// binary 1M below (2^20) and not the decimal 1e6 V2.5 was listed with — the
|
|
2471
|
+
// few-token gap is the chat envelope the server adds on top of the content.
|
|
2461
2472
|
{
|
|
2462
|
-
id: "mimo-v2.
|
|
2463
|
-
name: "MiMo-V2.
|
|
2473
|
+
id: "mimo-v2.6-pro",
|
|
2474
|
+
name: "MiMo-V2.6-Pro",
|
|
2464
2475
|
provider: "xiaomi",
|
|
2465
|
-
contextWindow:
|
|
2476
|
+
contextWindow: 1048576,
|
|
2466
2477
|
maxOutputTokens: 131072,
|
|
2467
2478
|
supportsThinking: true,
|
|
2468
|
-
supportsImages:
|
|
2469
|
-
supportsVideo:
|
|
2479
|
+
supportsImages: true,
|
|
2480
|
+
supportsVideo: true,
|
|
2481
|
+
maxVideoBytes: 36 * 1024 * 1024,
|
|
2470
2482
|
costTier: "medium",
|
|
2471
2483
|
maxThinkingLevel: "high",
|
|
2472
2484
|
authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
|
|
2473
2485
|
},
|
|
2474
|
-
//
|
|
2475
|
-
//
|
|
2476
|
-
//
|
|
2477
|
-
// resolve from the distinct API Credits key only (see authStorageKeys doc).
|
|
2486
|
+
// Flash: the cheap, high-frequency sibling at the same modality surface and
|
|
2487
|
+
// window as Pro. It is the provider's `low` tier, so scout sub-agents and
|
|
2488
|
+
// compaction summaries route here instead of paying Pro rates.
|
|
2478
2489
|
{
|
|
2479
|
-
id: "mimo-v2.
|
|
2480
|
-
name: "MiMo-V2.
|
|
2490
|
+
id: "mimo-v2.6-flash",
|
|
2491
|
+
name: "MiMo-V2.6-Flash",
|
|
2481
2492
|
provider: "xiaomi",
|
|
2482
|
-
contextWindow:
|
|
2493
|
+
contextWindow: 1048576,
|
|
2483
2494
|
maxOutputTokens: 131072,
|
|
2484
2495
|
supportsThinking: true,
|
|
2485
|
-
supportsImages:
|
|
2486
|
-
supportsVideo:
|
|
2487
|
-
|
|
2496
|
+
supportsImages: true,
|
|
2497
|
+
supportsVideo: true,
|
|
2498
|
+
maxVideoBytes: 36 * 1024 * 1024,
|
|
2499
|
+
costTier: "low",
|
|
2488
2500
|
maxThinkingLevel: "high",
|
|
2489
|
-
authStorageKeys: [XIAOMI_CREDITS_KEY]
|
|
2501
|
+
authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
|
|
2490
2502
|
},
|
|
2491
|
-
//
|
|
2492
|
-
//
|
|
2493
|
-
//
|
|
2503
|
+
// UltraSpeed: Pro-grade quality at much lower latency, premium-priced for
|
|
2504
|
+
// the throughput gain. API-only — not served over the Token Plan endpoint,
|
|
2505
|
+
// so credentials resolve from the distinct API Credits key only (see the
|
|
2506
|
+
// authStorageKeys doc). The Token Plan host rejects it with "Not supported
|
|
2507
|
+
// model" — the known-model/wrong-host reply — where an invented id gets
|
|
2508
|
+
// "Unsupported model", which is how this id was confirmed without a
|
|
2509
|
+
// Credits key. Attachment support is inferred from the series announcement
|
|
2510
|
+
// ("full modality across the series") rather than measured: images are
|
|
2511
|
+
// enabled, video stays off until it can be verified on the platform host.
|
|
2494
2512
|
{
|
|
2495
|
-
id: "mimo-v2.
|
|
2496
|
-
name: "MiMo-V2.
|
|
2513
|
+
id: "mimo-v2.6-pro-ultraspeed",
|
|
2514
|
+
name: "MiMo-V2.6-Pro-UltraSpeed",
|
|
2497
2515
|
provider: "xiaomi",
|
|
2498
|
-
contextWindow:
|
|
2516
|
+
contextWindow: 1048576,
|
|
2499
2517
|
maxOutputTokens: 131072,
|
|
2500
2518
|
supportsThinking: true,
|
|
2501
2519
|
supportsImages: true,
|
|
2502
|
-
supportsVideo:
|
|
2503
|
-
|
|
2504
|
-
costTier: "medium",
|
|
2520
|
+
supportsVideo: false,
|
|
2521
|
+
costTier: "high",
|
|
2505
2522
|
maxThinkingLevel: "high",
|
|
2506
|
-
authStorageKeys: [
|
|
2523
|
+
authStorageKeys: [XIAOMI_CREDITS_KEY]
|
|
2507
2524
|
},
|
|
2508
2525
|
// ── DeepSeek ───────────────────────────────────────────
|
|
2509
2526
|
{
|
|
@@ -2639,7 +2656,7 @@ function getVideoByteLimit(modelId) {
|
|
|
2639
2656
|
return model.maxVideoBytes ?? DEFAULT_MAX_VIDEO_BYTES;
|
|
2640
2657
|
}
|
|
2641
2658
|
function getDefaultModel(provider) {
|
|
2642
|
-
if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.
|
|
2659
|
+
if (provider === "xiaomi") return MODELS.find((m) => m.id === "mimo-v2.6-pro");
|
|
2643
2660
|
if (provider === "openai") return MODELS.find((m) => m.id === "gpt-5.6-sol");
|
|
2644
2661
|
if (provider === "gemini") return MODELS.find((m) => m.id === "gemini-3.1-flash-lite");
|
|
2645
2662
|
if (provider === "glm") return MODELS.find((m) => m.id === "glm-5.3");
|