feat: add Xiaomi MiMo Token Plan presets (#2803)

* feat: add Xiaomi MiMo token plan presets

* fix: update Xiaomi MiMo provider presets

* fix: align MiMo V2.5 model specs with official documentation

- Update maxTokens from 32000 to 131072 (128K) for mimo-v2.5-pro and mimo-v2.5
- Update contextWindow from 262144 to 1048576 (1M) for mimo-v2.5
- Aligns with official specs from Xiaomi MiMo documentation
- Ensures consistency between OpenClaw and OpenCode presets

---------

Co-authored-by: Jason <farion1231@gmail.com>
This commit is contained in:
BlueOcean
2026-05-18 10:38:03 +08:00
committed by GitHub
parent 5c79cf64a4
commit 0fb7fd12e5
8 changed files with 288 additions and 16 deletions
+46 -1
View File
@@ -919,7 +919,16 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
setCacheKey: true,
},
models: {
"mimo-v2-pro": { name: "MiMo V2 Pro" },
"mimo-v2.5-pro": {
name: "MiMo V2.5 Pro",
limit: { context: 1048576, output: 131072 },
modalities: { input: ["text"], output: ["text"] },
},
"mimo-v2.5": {
name: "MiMo V2.5",
limit: { context: 1048576, output: 131072 },
modalities: { input: ["text", "image"], output: ["text"] },
},
},
},
category: "cn_official",
@@ -933,6 +942,42 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
},
},
},
{
name: "Xiaomi MiMo Token Plan (China)",
websiteUrl: "https://platform.xiaomimimo.com/#/token-plan",
apiKeyUrl: "https://platform.xiaomimimo.com/#/console/plan-manage",
settingsConfig: {
npm: "@ai-sdk/openai-compatible",
name: "Xiaomi MiMo Token Plan (China)",
options: {
baseURL: "https://token-plan-cn.xiaomimimo.com/v1",
apiKey: "",
setCacheKey: true,
},
models: {
"mimo-v2.5-pro": {
name: "MiMo V2.5 Pro",
limit: { context: 1048576, output: 131072 },
modalities: { input: ["text"], output: ["text"] },
},
"mimo-v2.5": {
name: "MiMo V2.5",
limit: { context: 1048576, output: 131072 },
modalities: { input: ["text", "image"], output: ["text"] },
},
},
},
category: "cn_official",
icon: "xiaomimimo",
iconColor: "#000000",
templateValues: {
apiKey: {
label: "Token Plan API Key",
placeholder: "tp-...",
editorValue: "",
},
},
},
{
name: "AiHubMix",