fix(mimo): add supportsVision flag to MiMo-V2.5, V2.5-Pro, and V2-Omni (#2592)

Integrated into release/v3.8.2
This commit is contained in:
Hernan Javier Ardila Sanchez
2026-05-22 23:15:17 +02:00
committed by GitHub
parent fb0ac2a8ab
commit e2959b9841
2 changed files with 14 additions and 0 deletions

View File

@@ -188,16 +188,19 @@ export const MODEL_SPECS: Record<string, ModelSpec> = {
maxOutputTokens: 131072,
contextWindow: 1048576,
supportsTools: true,
supportsVision: true,
},
"mimo-v2.5": {
maxOutputTokens: 131072,
contextWindow: 1048576,
supportsTools: true,
supportsVision: true,
},
"mimo-v2-omni": {
maxOutputTokens: 131072,
contextWindow: 262144,
supportsTools: true,
supportsVision: true,
},
"mimo-v2-flash": {
maxOutputTokens: 65536,

View File

@@ -1,3 +1,4 @@
import { getModelSpec } from "../../src/shared/constants/modelSpecs.ts";
import test from "node:test";
import assert from "node:assert/strict";
@@ -96,3 +97,13 @@ test("xiaomi-mimo update schema accepts custom regional baseUrl", () => {
);
}
});
test("MiMo-V2.5, V2.5-Pro, and V2-Omni report vision capability", () => {
// Omnimodal models should have supportsVision
assert.equal(getModelSpec("mimo-v2.5-pro")?.supportsVision, true);
assert.equal(getModelSpec("mimo-v2.5")?.supportsVision, true);
assert.equal(getModelSpec("mimo-v2-omni")?.supportsVision, true);
// Flash is text-only — should NOT have vision
assert.equal(getModelSpec("mimo-v2-flash")?.supportsVision, undefined);
});