mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-02 05:12:11 +03:00
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:
committed by
GitHub
parent
fb0ac2a8ab
commit
e2959b9841
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user