Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/upgrade-minimax-m27.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"task-master-ai": minor
---

Upgrade MiniMax default model to M2.7, adding MiniMax-M2.7 and MiniMax-M2.7-highspeed models with enhanced reasoning and coding capabilities
6 changes: 6 additions & 0 deletions docs/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@
| bedrock | us.anthropic.claude-3-5-haiku-20241022-v1:0 | 0.4 | 0.8 | 4 |
| bedrock | us.anthropic.claude-opus-4-20250514-v1:0 | 0.725 | 15 | 75 |
| bedrock | us.anthropic.claude-sonnet-4-20250514-v1:0 | 0.727 | 3 | 15 |
| minimax | MiniMax-M2.7 | — | 0.3 | 1.2 |
| minimax | MiniMax-M2.7-highspeed | — | 0.6 | 2.4 |
| minimax | MiniMax-M2.5 | — | 1 | 5.5 |
| minimax | MiniMax-M2.5-highspeed | — | 1 | 5.5 |

Expand Down Expand Up @@ -175,6 +177,8 @@
| bedrock | us.anthropic.claude-opus-4-20250514-v1:0 | 0.725 | 15 | 75 |
| bedrock | us.anthropic.claude-sonnet-4-20250514-v1:0 | 0.727 | 3 | 15 |
| bedrock | us.deepseek.r1-v1:0 | — | 1.35 | 5.4 |
| minimax | MiniMax-M2.7 | — | 0.3 | 1.2 |
| minimax | MiniMax-M2.7-highspeed | — | 0.6 | 2.4 |
| minimax | MiniMax-M2.5 | — | 1 | 5.5 |
| minimax | MiniMax-M2.5-highspeed | — | 1 | 5.5 |

Expand Down Expand Up @@ -286,6 +290,8 @@
| bedrock | us.anthropic.claude-3-5-haiku-20241022-v1:0 | 0.4 | 0.8 | 4 |
| bedrock | us.anthropic.claude-opus-4-20250514-v1:0 | 0.725 | 15 | 75 |
| bedrock | us.anthropic.claude-sonnet-4-20250514-v1:0 | 0.727 | 3 | 15 |
| minimax | MiniMax-M2.7 | — | 0.3 | 1.2 |
| minimax | MiniMax-M2.7-highspeed | — | 0.6 | 2.4 |
| minimax | MiniMax-M2.5 | — | 1 | 5.5 |
| minimax | MiniMax-M2.5-highspeed | — | 1 | 5.5 |

Expand Down
24 changes: 24 additions & 0 deletions scripts/modules/supported-models.json
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,30 @@
}
],
"minimax": [
{
"id": "MiniMax-M2.7",
"name": "MiniMax M2.7",
"swe_score": null,
"cost_per_1m_tokens": {
"input": 0.3,
"output": 1.2
},
"allowed_roles": ["main", "fallback", "research"],
"max_tokens": 204800,
"supported": true
},
{
"id": "MiniMax-M2.7-highspeed",
"name": "MiniMax M2.7 Highspeed",
"swe_score": null,
"cost_per_1m_tokens": {
"input": 0.6,
"output": 2.4
},
"allowed_roles": ["main", "fallback", "research"],
"max_tokens": 204800,
"supported": true
},
{
"id": "MiniMax-M2.5",
"name": "MiniMax M2.5",
Expand Down
2 changes: 1 addition & 1 deletion src/ai-providers/minimax.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { OpenAICompatibleProvider } from './openai-compatible.js';

/**
* MiniMax provider supporting MiniMax-M2.5 models through OpenAI-compatible API.
* MiniMax provider supporting MiniMax-M2.7 models through OpenAI-compatible API.
*/
export class MiniMaxProvider extends OpenAICompatibleProvider {
constructor() {
Expand Down
39 changes: 39 additions & 0 deletions tests/unit/ai-providers/minimax.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
*/

import { MiniMaxProvider } from '../../../src/ai-providers/minimax.js';
import { readFileSync } from 'fs';
import { resolve, dirname } from 'path';
import { fileURLToPath } from 'url';

const __dirname = dirname(fileURLToPath(import.meta.url));
const supportedModels = JSON.parse(
readFileSync(resolve(__dirname, '../../../scripts/modules/supported-models.json'), 'utf-8')
);

describe('MiniMaxProvider', () => {
let provider;
Expand Down Expand Up @@ -82,4 +90,35 @@ describe('MiniMaxProvider', () => {
}).not.toThrow();
});
});

describe('supported-models.json', () => {
const minimaxModels = supportedModels.minimax;

it('should include MiniMax-M2.7 in model list', () => {
const m27 = minimaxModels.find((m) => m.id === 'MiniMax-M2.7');
expect(m27).toBeDefined();
expect(m27.supported).toBe(true);
});

it('should include MiniMax-M2.7-highspeed in model list', () => {
const m27hs = minimaxModels.find((m) => m.id === 'MiniMax-M2.7-highspeed');
expect(m27hs).toBeDefined();
expect(m27hs.supported).toBe(true);
});

it('should have MiniMax-M2.7 as the first model', () => {
expect(minimaxModels[0].id).toBe('MiniMax-M2.7');
});

it('should have MiniMax-M2.7-highspeed as the second model', () => {
expect(minimaxModels[1].id).toBe('MiniMax-M2.7-highspeed');
});

it('should retain previous MiniMax-M2.5 models', () => {
const m25 = minimaxModels.find((m) => m.id === 'MiniMax-M2.5');
const m25hs = minimaxModels.find((m) => m.id === 'MiniMax-M2.5-highspeed');
expect(m25).toBeDefined();
expect(m25hs).toBeDefined();
});
});
});
Loading