@prestyj/ai 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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -193,7 +193,7 @@ function finaliseBySource(source, message, requestId, hint) {
|
|
|
193
193
|
headline: message,
|
|
194
194
|
source,
|
|
195
195
|
message: "",
|
|
196
|
-
guidance: hint ?? "Only Kimi, Gemini, MiniMax, and MiMo-V2.
|
|
196
|
+
guidance: hint ?? "Only Kimi, Gemini, MiniMax, and MiMo-V2.6 can analyze video. Switch to one of those via the model selector.",
|
|
197
197
|
...requestId ? { requestId } : {}
|
|
198
198
|
};
|
|
199
199
|
case "ezcoder":
|
|
@@ -3803,7 +3803,7 @@ providerRegistry.register("xiaomi", {
|
|
|
3803
3803
|
const TOKEN_PLAN_URL = "https://token-plan-sgp.xiaomimimo.com/v1";
|
|
3804
3804
|
const PLATFORM_URL = "https://api.xiaomimimo.com/v1";
|
|
3805
3805
|
let baseUrl;
|
|
3806
|
-
if (options.model
|
|
3806
|
+
if (options.model.endsWith("-ultraspeed")) {
|
|
3807
3807
|
baseUrl = options.baseUrl && options.baseUrl !== TOKEN_PLAN_URL ? options.baseUrl : PLATFORM_URL;
|
|
3808
3808
|
} else {
|
|
3809
3809
|
baseUrl = options.baseUrl ?? TOKEN_PLAN_URL;
|