Files
openclaw/extensions/xiaomi/openclaw.plugin.json
Peter Steinberger c7e7ac2728 refactor: remove expired plugin compatibility surfaces (#111451)
* docs(secrets): remove retired web credential paths

* refactor(web): remove retired provider compatibility paths

* refactor(providers): delete retired compatibility routes

* refactor(secrets): remove retired credential aliases

* refactor(plugin-sdk): delete retired compatibility surfaces

* docs(plugin-sdk): remove retired migration guidance

* chore(plugin-sdk): refresh rebased surface budgets

* chore(plugin-sdk): refresh API removal baseline

* refactor(compat): migrate retired internal callers

* chore(plugin-sdk): refresh current-main baselines

* test(config): migrate plugin-owned secret assertions

* test(gateway): narrow plugin secret refs

* fix(plugin-sdk): preserve private boundary type identity

* chore(compat): remove stale sweep references

* chore(lint): lower max-lines budget

* refactor(secrets): remove unused web helper

* build(plugin-sdk): drop removed compat entries

* chore(plugin-sdk): refresh rebased API baseline

* chore(plugin-sdk): use Linux API baseline hash

* fix(plugin-sdk): preserve private bundled build entries

* fix(plugin-sdk): package private runtime facades

* fix(plugins): preserve external credential contracts
2026-07-19 11:04:48 -07:00

188 lines
5.6 KiB
JSON

{
"id": "xiaomi",
"icon": "https://cdn.simpleicons.org/xiaomi",
"activation": {
"onStartup": false
},
"enabledByDefault": true,
"providers": ["xiaomi", "xiaomi-token-plan"],
"autoEnableWhenConfiguredProviders": ["xiaomi", "xiaomi-token-plan"],
"setup": {
"providers": [
{
"id": "xiaomi",
"envVars": ["XIAOMI_API_KEY"]
},
{
"id": "xiaomi-token-plan",
"envVars": ["XIAOMI_TOKEN_PLAN_API_KEY"]
}
]
},
"modelCatalog": {
"providers": {
"xiaomi": {
"baseUrl": "https://api.xiaomimimo.com/v1",
"api": "openai-completions",
"models": [
{
"id": "mimo-v2.5",
"name": "Xiaomi MiMo V2.5",
"input": ["text", "image"],
"reasoning": true,
"contextWindow": 1048576,
"maxTokens": 131072,
"cost": {
"input": 0.14,
"output": 0.28,
"cacheRead": 0.0028,
"cacheWrite": 0
}
},
{
"id": "mimo-v2.5-pro",
"name": "Xiaomi MiMo V2.5 Pro",
"input": ["text"],
"reasoning": true,
"contextWindow": 1048576,
"maxTokens": 131072,
"cost": {
"input": 0.435,
"output": 0.87,
"cacheRead": 0.0036,
"cacheWrite": 0
}
}
]
},
"xiaomi-token-plan": {
"baseUrl": "https://token-plan-sgp.xiaomimimo.com/v1",
"api": "openai-completions",
"models": [
{
"id": "mimo-v2.5-pro",
"name": "Xiaomi MiMo V2.5 Pro",
"input": ["text"],
"reasoning": true,
"contextWindow": 1048576,
"maxTokens": 131072,
"cost": {
"input": 1,
"output": 3,
"cacheRead": 0.2,
"cacheWrite": 0,
"tieredPricing": [
{ "input": 1, "output": 3, "cacheRead": 0.2, "cacheWrite": 0, "range": [0, 256000] },
{ "input": 1, "output": 3, "cacheRead": 0.4, "cacheWrite": 0, "range": [256000] }
]
}
},
{
"id": "mimo-v2.5",
"name": "Xiaomi MiMo V2.5",
"input": ["text", "image"],
"reasoning": true,
"contextWindow": 1048576,
"maxTokens": 131072,
"cost": {
"input": 0.4,
"output": 2,
"cacheRead": 0.08,
"cacheWrite": 0,
"tieredPricing": [
{ "input": 0.4, "output": 2, "cacheRead": 0.08, "cacheWrite": 0, "range": [0, 256000] },
{ "input": 0.4, "output": 2, "cacheRead": 0.16, "cacheWrite": 0, "range": [256000] }
]
}
}
]
}
},
"discovery": {
"xiaomi": "static",
"xiaomi-token-plan": "runtime"
}
},
"providerEndpoints": [
{
"endpointClass": "xiaomi-native",
"hosts": [
"api.xiaomimimo.com",
"token-plan-ams.xiaomimimo.com",
"token-plan-cn.xiaomimimo.com",
"token-plan-sgp.xiaomimimo.com"
]
}
],
"contracts": {
"speechProviders": ["xiaomi"],
"usageProviders": ["xiaomi", "xiaomi-token-plan"]
},
"providerAuthChoices": [
{
"provider": "xiaomi",
"method": "api-key",
"choiceId": "xiaomi-api-key",
"appGuidedSecret": true,
"choiceLabel": "Xiaomi API key (Pay-as-you-go)",
"groupId": "xiaomi",
"groupLabel": "Xiaomi",
"groupHint": "Pay-as-you-go / Token Plan",
"optionKey": "xiaomiApiKey",
"cliFlag": "--xiaomi-api-key",
"cliOption": "--xiaomi-api-key <key>",
"cliDescription": "Xiaomi MiMo pay-as-you-go API key"
},
{
"provider": "xiaomi-token-plan",
"method": "token-plan-ams",
"choiceId": "xiaomi-token-plan-ams",
"appGuidedSecret": true,
"choiceLabel": "Xiaomi Token Plan (Europe)",
"choiceHint": "Endpoint preset: token-plan-ams.xiaomimimo.com/v1",
"groupId": "xiaomi",
"groupLabel": "Xiaomi",
"groupHint": "Pay-as-you-go / Token Plan",
"optionKey": "xiaomiTokenPlanApiKey",
"cliFlag": "--xiaomi-token-plan-api-key",
"cliOption": "--xiaomi-token-plan-api-key <key>",
"cliDescription": "Xiaomi MiMo Token Plan API key"
},
{
"provider": "xiaomi-token-plan",
"method": "token-plan-cn",
"choiceId": "xiaomi-token-plan-cn",
"appGuidedSecret": true,
"choiceLabel": "Xiaomi Token Plan (China)",
"choiceHint": "Endpoint preset: token-plan-cn.xiaomimimo.com/v1",
"groupId": "xiaomi",
"groupLabel": "Xiaomi",
"groupHint": "Pay-as-you-go / Token Plan",
"optionKey": "xiaomiTokenPlanApiKey",
"cliFlag": "--xiaomi-token-plan-api-key",
"cliOption": "--xiaomi-token-plan-api-key <key>",
"cliDescription": "Xiaomi MiMo Token Plan API key"
},
{
"provider": "xiaomi-token-plan",
"method": "token-plan-sgp",
"choiceId": "xiaomi-token-plan-sgp",
"appGuidedSecret": true,
"choiceLabel": "Xiaomi Token Plan (Singapore)",
"choiceHint": "Endpoint preset: token-plan-sgp.xiaomimimo.com/v1",
"groupId": "xiaomi",
"groupLabel": "Xiaomi",
"groupHint": "Pay-as-you-go / Token Plan",
"optionKey": "xiaomiTokenPlanApiKey",
"cliFlag": "--xiaomi-token-plan-api-key",
"cliOption": "--xiaomi-token-plan-api-key <key>",
"cliDescription": "Xiaomi MiMo Token Plan API key"
}
],
"configSchema": {
"type": "object",
"additionalProperties": false,
"properties": {}
}
}