Add Xiaomi MiMo provider support

- Introduced Xiaomi MiMo as a new provider in providerModels.js and providers.js.
- Updated model alias mapping in model.js to include Xiaomi MiMo.
- Enhanced validation route to support Xiaomi MiMo API endpoints.
- Added Xiaomi MiMo to APIKEY_PROVIDERS with relevant details.

This update expands the range of supported providers, improving integration capabilities.
This commit is contained in:
decolua
2026-05-01 16:32:25 +07:00
parent 6f174b685b
commit b0da7c1211
6 changed files with 16 additions and 1 deletions
+6
View File
@@ -444,6 +444,12 @@ export const PROVIDER_MODELS = {
{ id: "openai/gpt-oss-120b", name: "GPT OSS 120B" }, { id: "openai/gpt-oss-120b", name: "GPT OSS 120B" },
{ id: "baidu/ERNIE-4.5-300B-A47B", name: "ERNIE 4.5 300B" }, { id: "baidu/ERNIE-4.5-300B-A47B", name: "ERNIE 4.5 300B" },
], ],
"xiaomi-mimo": [
{ 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" },
],
hyperbolic: [ hyperbolic: [
{ id: "Qwen/QwQ-32B", name: "QwQ 32B" }, { id: "Qwen/QwQ-32B", name: "QwQ 32B" },
{ id: "deepseek-ai/DeepSeek-R1", name: "DeepSeek R1" }, { id: "deepseek-ai/DeepSeek-R1", name: "DeepSeek R1" },
+4
View File
@@ -372,6 +372,10 @@ export const PROVIDERS = {
baseUrl: "https://api.cloudflare.com/client/v4/accounts/{accountId}/ai/v1/chat/completions", baseUrl: "https://api.cloudflare.com/client/v4/accounts/{accountId}/ai/v1/chat/completions",
format: "openai" format: "openai"
}, },
"xiaomi-mimo": {
baseUrl: "https://api.xiaomimimo.com/v1/chat/completions",
format: "openai"
},
}; };
export const OLLAMA_LOCAL_DEFAULT_HOST = "http://localhost:11434"; export const OLLAMA_LOCAL_DEFAULT_HOST = "http://localhost:11434";
+2
View File
@@ -63,6 +63,8 @@ const ALIAS_TO_PROVIDER_ID = {
"grok-web": "grok-web", "grok-web": "grok-web",
pw: "perplexity-web", pw: "perplexity-web",
"perplexity-web": "perplexity-web", "perplexity-web": "perplexity-web",
mimo: "xiaomi-mimo",
"xiaomi-mimo": "xiaomi-mimo",
}; };
/** /**
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

+3 -1
View File
@@ -361,6 +361,7 @@ export async function POST(request) {
case "assemblyai": case "assemblyai":
case "nanobanana": case "nanobanana":
case "chutes": case "chutes":
case "xiaomi-mimo":
case "nvidia": { case "nvidia": {
const endpoints = { const endpoints = {
deepseek: "https://api.deepseek.com/models", deepseek: "https://api.deepseek.com/models",
@@ -380,7 +381,8 @@ export async function POST(request) {
assemblyai: "https://api.assemblyai.com/v1/account", assemblyai: "https://api.assemblyai.com/v1/account",
nanobanana: "https://api.nanobananaapi.ai/v1/models", nanobanana: "https://api.nanobananaapi.ai/v1/models",
chutes: "https://llm.chutes.ai/v1/models", chutes: "https://llm.chutes.ai/v1/models",
nvidia: "https://integrate.api.nvidia.com/v1/models" nvidia: "https://integrate.api.nvidia.com/v1/models",
"xiaomi-mimo": "https://api.xiaomimimo.com/v1/models"
}; };
const headers = {}; const headers = {};
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`; if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
File diff suppressed because one or more lines are too long