Adds mimo-v2.5-tts as a Media Provider TTS through the existing OpenAI-compatible chat-completions endpoint. Voice is selected via the top-level audio.voice field, and an optional style/language hint is threaded through tts.js -> ttsCore.js -> the new adapter.
54 lines
1.5 KiB
JavaScript
54 lines
1.5 KiB
JavaScript
import { CLAUDE_API_HEADERS } from "../shared.js";
|
|
|
|
export default {
|
|
id: "xiaomi-mimo",
|
|
priority: 290,
|
|
alias: "xiaomi-mimo",
|
|
aliases: [
|
|
"mimo",
|
|
],
|
|
uiAlias: "mimo",
|
|
display: {
|
|
name: "Xiaomi MiMo",
|
|
icon: "smart_toy",
|
|
color: "#FF6900",
|
|
textIcon: "XM",
|
|
website: "https://xiaomimimo.com",
|
|
notice: {
|
|
apiKeyUrl: "https://platform.xiaomimimo.com/console/api-keys",
|
|
},
|
|
},
|
|
category: "apikey",
|
|
serviceKinds: ["llm", "tts"],
|
|
transport: {
|
|
baseUrl: "https://api.xiaomimimo.com/v1/chat/completions",
|
|
validateUrl: "https://api.xiaomimimo.com/v1/models",
|
|
},
|
|
// 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" },
|
|
},
|
|
],
|
|
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" },
|
|
{ id: "mimo-v2.5-tts", name: "MiMo V2.5 TTS", kind: "tts" },
|
|
],
|
|
ttsConfig: {
|
|
baseUrl: "https://api.xiaomimimo.com/v1/chat/completions",
|
|
authType: "apikey",
|
|
authHeader: "bearer",
|
|
format: "xiaomi-mimo-tts",
|
|
},
|
|
};
|