feat(xiaomi-tokenplan): add Claude-native MiMo V2.5 Pro alias via dedicated executor

Add mimo-v2.5-pro-claude alias routing to the Xiaomi TokenPlan Anthropic-compatible
/anthropic/v1/messages endpoint. Logic lives in a dedicated XiaomiTokenplanExecutor
(config-driven via targetFormat) instead of the shared DefaultExecutor.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Mr_NoboDy
2026-06-06 10:36:03 +07:00
committed by decolua
co-authored by Cursor
parent 3dda651bad
commit 40cfa63eb8
5 changed files with 29 additions and 8 deletions
+3
View File
@@ -15,6 +15,7 @@ import { GrokWebExecutor } from "./grok-web.js";
import { PerplexityWebExecutor } from "./perplexity-web.js";
import { OllamaLocalExecutor } from "./ollama-local.js";
import { CommandCodeExecutor } from "./commandcode.js";
import { XiaomiTokenplanExecutor } from "./xiaomi-tokenplan.js";
import { DefaultExecutor } from "./default.js";
const executors = {
@@ -37,6 +38,7 @@ const executors = {
"perplexity-web": new PerplexityWebExecutor(),
"ollama-local": new OllamaLocalExecutor(),
commandcode: new CommandCodeExecutor(),
"xiaomi-tokenplan": new XiaomiTokenplanExecutor(),
};
const defaultCache = new Map();
@@ -70,3 +72,4 @@ export { GrokWebExecutor } from "./grok-web.js";
export { PerplexityWebExecutor } from "./perplexity-web.js";
export { OllamaLocalExecutor } from "./ollama-local.js";
export { CommandCodeExecutor } from "./commandcode.js";
export { XiaomiTokenplanExecutor } from "./xiaomi-tokenplan.js";