fix(minimax): mark MiniMax-M2.7 as text-only input (#2068)

Co-authored-by: octo-patch <266937838+octo-patch@users.noreply.github.com>
This commit is contained in:
Octopus
2026-07-30 21:52:02 +08:00
committed by GitHub
co-authored by octo-patch
parent 77c82829c4
commit 5cac15cbda
2 changed files with 14 additions and 2 deletions
+6 -2
View File
@@ -70,9 +70,13 @@ export default [
label: 'MiniMax M2.7',
brandId: 'minimax',
vendorId: 'minimax',
classification: ['chat', 'reasoning', 'vision', 'coding'],
// Text-only model: accepts text input, no image/vision inputs.
classification: ['chat', 'reasoning', 'coding'],
defaultModel: 'MiniMax-M2.7',
capabilities: minimaxM2Capabilities,
capabilities: {
...minimaxM2Capabilities,
supportsVision: false,
},
contextWindow: 196_608,
maxOutputTokens: 131_072,
}),
+8
View File
@@ -111,6 +111,14 @@ describe('isVisionSupported', () => {
).toBe(false)
})
test('returns false for the text-only MiniMax M2.7 model on the MiniMax route', () => {
expect(
isVisionSupported('MiniMax-M2.7', {
baseUrl: 'https://api.minimax.io/anthropic',
}),
).toBe(false)
})
test('returns true for Claude models', () => {
expect(isVisionSupported('claude-sonnet-4-6')).toBe(true)
})