From e2959b9841ca54e406e1a603b686f71db6bb5c4e Mon Sep 17 00:00:00 2001 From: Hernan Javier Ardila Sanchez Date: Fri, 22 May 2026 23:15:17 +0200 Subject: [PATCH] fix(mimo): add supportsVision flag to MiMo-V2.5, V2.5-Pro, and V2-Omni (#2592) Integrated into release/v3.8.2 --- src/shared/constants/modelSpecs.ts | 3 +++ tests/unit/xiaomi-mimo-provider.test.ts | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/src/shared/constants/modelSpecs.ts b/src/shared/constants/modelSpecs.ts index aaa24daaa8..6fd35ba3f7 100644 --- a/src/shared/constants/modelSpecs.ts +++ b/src/shared/constants/modelSpecs.ts @@ -188,16 +188,19 @@ export const MODEL_SPECS: Record = { 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, diff --git a/tests/unit/xiaomi-mimo-provider.test.ts b/tests/unit/xiaomi-mimo-provider.test.ts index a74d5ebdba..c80307238e 100644 --- a/tests/unit/xiaomi-mimo-provider.test.ts +++ b/tests/unit/xiaomi-mimo-provider.test.ts @@ -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); +});