mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 21:02:12 +03:00
fix(providers): remove deprecated MiMo v2 entries (#6248)
chore(providers): remove deprecated MiMo V2 catalog entries (superseded by V2.5); realign provider-catalog tests. Merged — thank you, @backryun! Base-reds only. Integrated into release/v3.8.45.
This commit is contained in:
@@ -228,8 +228,8 @@ describe("OpencodeExecutor", () => {
|
||||
// Register new models
|
||||
registerModel("opencode-go", { id: "glm-5.1", name: "GLM-5.1", contextLength: 204800 });
|
||||
registerModel("opencode-go", { id: "kimi-k2.6", name: "Kimi K2.6" });
|
||||
registerModel("opencode-go", { id: "mimo-v2-pro", name: "MiMo V2 Pro" });
|
||||
registerModel("opencode-go", { id: "mimo-v2-omni", name: "MiMo V2 Omni" });
|
||||
registerModel("opencode-go", { id: "mimo-v2.5-pro", name: "MiMo V2.5 Pro" });
|
||||
registerModel("opencode-go", { id: "mimo-v2.5", name: "MiMo V2.5" });
|
||||
|
||||
// glm-5.1
|
||||
const glm51 = await goExecutor.execute(createInput("glm-5.1"));
|
||||
@@ -239,13 +239,13 @@ describe("OpencodeExecutor", () => {
|
||||
const kimi26 = await goExecutor.execute(createInput("kimi-k2.6"));
|
||||
assert.equal(kimi26.url, "https://opencode.ai/zen/go/v1/chat/completions");
|
||||
|
||||
// mimo-v2-pro
|
||||
const mimoPro = await goExecutor.execute(createInput("mimo-v2-pro"));
|
||||
// mimo-v2.5-pro
|
||||
const mimoPro = await goExecutor.execute(createInput("mimo-v2.5-pro"));
|
||||
assert.equal(mimoPro.url, "https://opencode.ai/zen/go/v1/chat/completions");
|
||||
|
||||
// mimo-v2-omni
|
||||
const mimoOmni = await goExecutor.execute(createInput("mimo-v2-omni"));
|
||||
assert.equal(mimoOmni.url, "https://opencode.ai/zen/go/v1/chat/completions");
|
||||
// mimo-v2.5
|
||||
const mimo = await goExecutor.execute(createInput("mimo-v2.5"));
|
||||
assert.equal(mimo.url, "https://opencode.ai/zen/go/v1/chat/completions");
|
||||
});
|
||||
|
||||
it("routes opencode-go qwen models to claude messages endpoint", async () => {
|
||||
@@ -278,21 +278,21 @@ describe("OpencodeExecutor", () => {
|
||||
it("routes opencode-go catalog-only models to chat completions", async () => {
|
||||
// Register new models
|
||||
registerModel("opencode-go", { id: "glm-6-max", name: "GLM-6 Max" });
|
||||
registerModel("opencode-go", { id: "mimo-v2-pro", name: "MiMo-V2-Pro" });
|
||||
registerModel("opencode-go", { id: "mimo-v2-omni", name: "MiMo-V2-Omni" });
|
||||
registerModel("opencode-go", { id: "mimo-v2.5-pro", name: "MiMo-V2.5-Pro" });
|
||||
registerModel("opencode-go", { id: "mimo-v2.5", name: "MiMo-V2.5" });
|
||||
registerModel("opencode-go", { id: "hy3-preview", name: "Hunyuan3 Preview" });
|
||||
|
||||
// glm-6-max
|
||||
const glm6 = await goExecutor.execute(createInput("glm-6-max"));
|
||||
assert.equal(glm6.url, "https://opencode.ai/zen/go/v1/chat/completions");
|
||||
|
||||
// mimo-v2-pro
|
||||
const mimoPro = await goExecutor.execute(createInput("mimo-v2-pro"));
|
||||
// mimo-v2.5-pro
|
||||
const mimoPro = await goExecutor.execute(createInput("mimo-v2.5-pro"));
|
||||
assert.equal(mimoPro.url, "https://opencode.ai/zen/go/v1/chat/completions");
|
||||
|
||||
// mimo-v2-omni
|
||||
const mimoOmni = await goExecutor.execute(createInput("mimo-v2-omni"));
|
||||
assert.equal(mimoOmni.url, "https://opencode.ai/zen/go/v1/chat/completions");
|
||||
// mimo-v2.5
|
||||
const mimo = await goExecutor.execute(createInput("mimo-v2.5"));
|
||||
assert.equal(mimo.url, "https://opencode.ai/zen/go/v1/chat/completions");
|
||||
|
||||
// hy3-preview
|
||||
const hy3 = await goExecutor.execute(createInput("hy3-preview"));
|
||||
|
||||
Reference in New Issue
Block a user