@prestyj/core 5.39.2 → 5.39.3
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-WSFHVWQ4.js → chunk-JONGQMZF.js} +19 -14
- package/dist/chunk-JONGQMZF.js.map +1 -0
- package/dist/index.cjs +19 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/model-registry.cjs +9 -11
- 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 +2 -2
- package/dist/chunk-WSFHVWQ4.js.map +0 -1
|
@@ -2028,6 +2028,13 @@ function providerStorageKeys(provider) {
|
|
|
2028
2028
|
return dual ? [dual.oauthKey, dual.provider] : [provider];
|
|
2029
2029
|
}
|
|
2030
2030
|
var XIAOMI_CREDITS_KEY = "xiaomi-credits";
|
|
2031
|
+
var XIAOMI_CREDITS_BASE_URL = "https://api.xiaomimimo.com/v1";
|
|
2032
|
+
function withXiaomiHost(key, creds) {
|
|
2033
|
+
if (creds.baseUrl) return creds;
|
|
2034
|
+
if (key === "xiaomi") return { ...creds, baseUrl: XIAOMI_TOKEN_PLAN_BASE_URLS[0] };
|
|
2035
|
+
if (key === XIAOMI_CREDITS_KEY) return { ...creds, baseUrl: XIAOMI_CREDITS_BASE_URL };
|
|
2036
|
+
return creds;
|
|
2037
|
+
}
|
|
2031
2038
|
var GEMINI_API_KEY = "gemini-api";
|
|
2032
2039
|
var GEMINI_API_KEY_BASE_URL = "https://generativelanguage.googleapis.com/v1beta";
|
|
2033
2040
|
var LOCAL_AUTH_KEY_PREFIX = "local:";
|
|
@@ -2450,7 +2457,7 @@ var AuthStorage = class {
|
|
|
2450
2457
|
...opts.rejectedToken !== void 0 ? { rejectedToken: opts.rejectedToken } : {}
|
|
2451
2458
|
});
|
|
2452
2459
|
}
|
|
2453
|
-
return creds2;
|
|
2460
|
+
return withXiaomiHost(key, creds2);
|
|
2454
2461
|
}
|
|
2455
2462
|
throw new NotLoggedInError(provider);
|
|
2456
2463
|
}
|
|
@@ -2492,7 +2499,7 @@ var AuthStorage = class {
|
|
|
2492
2499
|
}
|
|
2493
2500
|
if (STATIC_API_KEY_PROVIDERS.has(provider)) {
|
|
2494
2501
|
if (provider === "minimax" && !creds.baseUrl) return await this.withMiniMaxRegion(creds);
|
|
2495
|
-
return creds;
|
|
2502
|
+
return withXiaomiHost(provider, creds);
|
|
2496
2503
|
}
|
|
2497
2504
|
if (!opts?.forceRefresh && Date.now() < creds.expiresAt - refreshThresholdMs(creds)) {
|
|
2498
2505
|
return creds;
|
|
@@ -2619,8 +2626,8 @@ var CLAUDE_FABLE_FAST_BILLING = {
|
|
|
2619
2626
|
standardModel: "claude-fable-5-2"
|
|
2620
2627
|
};
|
|
2621
2628
|
var XIAOMI_ULTRASPEED_BILLING = {
|
|
2622
|
-
label: "
|
|
2623
|
-
detail: "UltraSpeed
|
|
2629
|
+
label: "may bill API Credits",
|
|
2630
|
+
detail: "UltraSpeed is included in Token Plan Pro and Max for a limited time; otherwise it bills your Xiaomi API Credits per token at a higher rate than MiMo-V2.6-Pro.",
|
|
2624
2631
|
paid: true,
|
|
2625
2632
|
standardModel: "mimo-v2.6-pro"
|
|
2626
2633
|
};
|
|
@@ -3341,14 +3348,12 @@ var MODELS = [
|
|
|
3341
3348
|
authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY]
|
|
3342
3349
|
},
|
|
3343
3350
|
// UltraSpeed: Pro-grade quality at much lower latency, premium-priced for
|
|
3344
|
-
// the throughput gain.
|
|
3345
|
-
//
|
|
3346
|
-
//
|
|
3347
|
-
//
|
|
3348
|
-
//
|
|
3349
|
-
//
|
|
3350
|
-
// this entry tracks the rest of the V2.6 series ("full modality across the
|
|
3351
|
-
// series") and mirrors Pro's verified image+video surface.
|
|
3351
|
+
// the throughput gain. Xiaomi's platform changelog V2.2.3 (2026-11-19) adds it
|
|
3352
|
+
// to Token Plan Pro and Max for a limited time, so it prefers the Token Plan
|
|
3353
|
+
// like Pro and falls back to API Credits (Lite plans still need Credits).
|
|
3354
|
+
// Billing stays `paid` because the Credits path, and the plan once the
|
|
3355
|
+
// promotion ends, spend real money. Attachments mirror Pro's verified
|
|
3356
|
+
// image+video surface ("full modality across the series").
|
|
3352
3357
|
{
|
|
3353
3358
|
id: "mimo-v2.6-pro-ultraspeed",
|
|
3354
3359
|
name: "MiMo-V2.6-Pro-UltraSpeed",
|
|
@@ -3361,7 +3366,7 @@ var MODELS = [
|
|
|
3361
3366
|
maxVideoBytes: 36 * 1024 * 1024,
|
|
3362
3367
|
costTier: "high",
|
|
3363
3368
|
maxThinkingLevel: "high",
|
|
3364
|
-
authStorageKeys: [XIAOMI_CREDITS_KEY],
|
|
3369
|
+
authStorageKeys: ["xiaomi", XIAOMI_CREDITS_KEY],
|
|
3365
3370
|
billing: XIAOMI_ULTRASPEED_BILLING
|
|
3366
3371
|
},
|
|
3367
3372
|
// ── DeepSeek ───────────────────────────────────────────
|
|
@@ -3817,4 +3822,4 @@ export {
|
|
|
3817
3822
|
getDefaultThinkingLevel,
|
|
3818
3823
|
getSummaryModel
|
|
3819
3824
|
};
|
|
3820
|
-
//# sourceMappingURL=chunk-
|
|
3825
|
+
//# sourceMappingURL=chunk-JONGQMZF.js.map
|