2026-06-20 10:09:50 +07:00
|
|
|
import { CLAUDE_API_HEADERS } from "../shared.js";
|
|
|
|
|
|
2026-06-13 21:08:37 +07:00
|
|
|
export default {
|
2026-06-14 14:32:59 +07:00
|
|
|
id: "xiaomi-mimo",
|
2026-06-14 18:49:38 +07:00
|
|
|
priority: 290,
|
2026-06-14 14:32:59 +07:00
|
|
|
alias: "xiaomi-mimo",
|
|
|
|
|
aliases: [
|
|
|
|
|
"mimo",
|
|
|
|
|
],
|
|
|
|
|
uiAlias: "mimo",
|
2026-06-14 13:15:48 +07:00
|
|
|
display: {
|
2026-06-14 14:32:59 +07:00
|
|
|
name: "Xiaomi MiMo",
|
|
|
|
|
icon: "smart_toy",
|
|
|
|
|
color: "#FF6900",
|
|
|
|
|
textIcon: "XM",
|
|
|
|
|
website: "https://xiaomimimo.com",
|
|
|
|
|
notice: {
|
|
|
|
|
apiKeyUrl: "https://xiaomimimo.com",
|
|
|
|
|
},
|
2026-06-14 13:15:48 +07:00
|
|
|
},
|
|
|
|
|
category: "apikey",
|
2026-06-14 14:32:59 +07:00
|
|
|
transport: {
|
|
|
|
|
baseUrl: "https://api.xiaomimimo.com/v1/chat/completions",
|
|
|
|
|
validateUrl: "https://api.xiaomimimo.com/v1/models",
|
2026-06-13 21:08:37 +07:00
|
|
|
},
|
2026-06-20 10:09:50 +07:00
|
|
|
// Multi-endpoint: pick the transport matching client sourceFormat to skip translation.
|
|
|
|
|
transports: [
|
|
|
|
|
{
|
|
|
|
|
format: "openai",
|
|
|
|
|
baseUrl: "https://api.xiaomimimo.com/v1/chat/completions",
|
|
|
|
|
auth: { combined: true, header: "Authorization", scheme: "bearer" },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
format: "claude",
|
|
|
|
|
baseUrl: "https://api.xiaomimimo.com/anthropic/v1/messages",
|
|
|
|
|
headers: { ...CLAUDE_API_HEADERS },
|
|
|
|
|
auth: { combined: true, header: "x-api-key", scheme: "raw" },
|
|
|
|
|
},
|
|
|
|
|
],
|
2026-06-14 14:32:59 +07:00
|
|
|
models: [
|
|
|
|
|
{ id: "mimo-v2.5-pro", name: "MiMo V2.5 Pro" },
|
|
|
|
|
{ id: "mimo-v2.5", name: "MiMo V2.5" },
|
|
|
|
|
{ id: "mimo-v2-omni", name: "MiMo V2 Omni" },
|
|
|
|
|
{ id: "mimo-v2-flash", name: "MiMo V2 Flash" },
|
|
|
|
|
],
|
2026-06-13 21:08:37 +07:00
|
|
|
};
|