Skip to content

Commit 34cb653

Browse files
committed
test: drop MiniMax-M2.7-highspeed fixtures (M2.5/M2.7/M3 only)
MiniMax has sunset M2.7-highspeed across all subscription tiers — even legacy users no longer have it. The API still accepts the id (backward compat) but it's no longer part of the official text-model lineup: M2.5 / M2.7 / M3. Update test fixtures to use M2.5 (the only M-tier model in the lineup that wasn't already the hardcoded fallback) so the fixtures reflect real-world model ids users will actually pass. CLI behavior unchanged. Builds on #172.
1 parent 115f462 commit 34cb653

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

test/commands/config/set.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ describe('config set command', () => {
9191
await expect(
9292
setCommand.execute(config, {
9393
key: 'default_text_model',
94-
value: 'MiniMax-M2.7-highspeed',
94+
value: 'MiniMax-M2.5',
9595
quiet: false,
9696
verbose: false,
9797
noColor: true,
@@ -123,7 +123,7 @@ describe('config set command', () => {
123123
await expect(
124124
setCommand.execute(config, {
125125
key: 'default-text-model',
126-
value: 'MiniMax-M2.7-highspeed',
126+
value: 'MiniMax-M2.5',
127127
quiet: false,
128128
verbose: false,
129129
noColor: true,

test/commands/config/show.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { default as showCommand } from '../../../src/commands/config/show';
55
mock.module('../../../src/config/loader', () => ({
66
readConfigFile: () => ({
77
api_key: 'sk-cp-test-key',
8-
default_text_model: 'MiniMax-M2.7-highspeed',
8+
default_text_model: 'MiniMax-M2.5',
99
default_speech_model: 'speech-2.8-hd',
1010
default_video_model: 'MiniMax-Hailuo-2.3-6s-768p',
1111
default_music_model: 'music-2.6',
@@ -89,7 +89,7 @@ describe('config show command', () => {
8989
});
9090

9191
const parsed = JSON.parse(output);
92-
expect(parsed.default_text_model).toBe('MiniMax-M2.7-highspeed');
92+
expect(parsed.default_text_model).toBe('MiniMax-M2.5');
9393
expect(parsed.default_speech_model).toBe('speech-2.8-hd');
9494
expect(parsed.default_video_model).toBe('MiniMax-Hailuo-2.3-6s-768p');
9595
expect(parsed.default_music_model).toBe('music-2.6');

test/commands/text/chat.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ describe('text chat command', () => {
112112
baseUrl: 'https://api.mmx.io',
113113
output: 'json',
114114
timeout: 10,
115-
defaultTextModel: 'MiniMax-M2.7-highspeed',
115+
defaultTextModel: 'MiniMax-M2.5',
116116
verbose: false,
117117
quiet: false,
118118
noColor: true,
@@ -140,7 +140,7 @@ describe('text chat command', () => {
140140
});
141141

142142
const parsed = JSON.parse(output);
143-
expect(parsed.request.model).toBe('MiniMax-M2.7-highspeed');
143+
expect(parsed.request.model).toBe('MiniMax-M2.5');
144144
} finally {
145145
console.log = originalLog;
146146
}
@@ -268,7 +268,7 @@ describe('text chat command', () => {
268268
baseUrl: 'https://api.mmx.io',
269269
output: 'json',
270270
timeout: 10,
271-
defaultTextModel: 'MiniMax-M2.7-highspeed',
271+
defaultTextModel: 'MiniMax-M2.5',
272272
verbose: false,
273273
quiet: false,
274274
noColor: true,

test/utils/model-defaults.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ function resolveModel(
3333

3434
describe('model resolution (flag > config default > fallback)', () => {
3535
it('uses flag when provided', () => {
36-
const model = resolveModel('defaultTextModel', 'MiniMax-M2.7', baseConfig, { model: 'MiniMax-M2.7-highspeed' });
37-
expect(model).toBe('MiniMax-M2.7-highspeed');
36+
const model = resolveModel('defaultTextModel', 'MiniMax-M2.7', baseConfig, { model: 'MiniMax-M2.5' });
37+
expect(model).toBe('MiniMax-M2.5');
3838
});
3939

4040
it('falls back to config default when flag is absent', () => {
41-
const model = resolveModel('defaultTextModel', 'MiniMax-M2.7', { ...baseConfig, defaultTextModel: 'MiniMax-M2.7-highspeed' }, {});
42-
expect(model).toBe('MiniMax-M2.7-highspeed');
41+
const model = resolveModel('defaultTextModel', 'MiniMax-M2.7', { ...baseConfig, defaultTextModel: 'MiniMax-M2.5' }, {});
42+
expect(model).toBe('MiniMax-M2.5');
4343
});
4444

4545
it('falls back to hardcoded when neither flag nor config', () => {

0 commit comments

Comments
 (0)