Skip to content
Merged
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
2 changes: 1 addition & 1 deletion packages/config/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,7 @@ function buildPresetEntry(key: PresetKey) {
};
return {
provider: { minimax: provider } as ModelsConfig,
defaultModel: "minimax/MiniMax-M3.1-Flash-Preview",
defaultModel: "minimax/MiniMax-M3.1-Flash",
};
}

Expand Down
4 changes: 2 additions & 2 deletions packages/config/src/minimax-model-catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export const MINIMAX_MODELS: Record<string, ModelConfig> = {
},
capabilities: MINIMAX_M3_FILE_API_CAPABILITIES,
},
"MiniMax-M3.1-Flash-Preview": {
name: "M3.1-Flash-Preview",
"MiniMax-M3.1-Flash": {
name: "M3.1-Flash",
attachment: true,
reasoning: true,
tool_call: true,
Expand Down
8 changes: 4 additions & 4 deletions packages/config/test/builtin-model-fallback.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from "../src/config.js";
import { resolveModelAvailability } from "../src/model-availability.js";

const modelId = "MiniMax-M3.1-Flash-Preview";
const modelId = "MiniMax-M3.1-Flash";
let dataDir: string;

beforeEach(() => {
Expand All @@ -31,11 +31,11 @@ afterEach(() => {
});

describe("built-in model fallback", () => {
it("seeds M3.1 Flash Preview before a remote snapshot exists and preserves it on reload", () => {
it("seeds M3.1 Flash before a remote snapshot exists and preserves it on reload", () => {
const config = getConfig();
const model = config.provider.minimax?.models?.[modelId];
expect(model).toMatchObject({
name: "M3.1-Flash-Preview",
name: "M3.1-Flash",
attachment: true,
reasoning: true,
tool_call: true,
Expand All @@ -58,7 +58,7 @@ describe("built-in model fallback", () => {
max_attachments_count: 4,
},
});
expect(config.defaultModel).toBe("minimax/MiniMax-M3.1-Flash-Preview");
expect(config.defaultModel).toBe("minimax/MiniMax-M3.1-Flash");
resetConfig();
expect(getConfig().provider.minimax?.models?.[modelId]).toEqual(model);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ describe('resolveAgentModelSelection', () => {
...config.provider,
minimax: {
models: {
'MiniMax-M3.1-Flash-Preview': { limit: { context: 512_000, output: 128_000 } },
'MiniMax-M3.1-Flash': { limit: { context: 512_000, output: 128_000 } },
'MiniMax-M3': { limit: { context: 512_000, output: 128_000 } },
},
},
Expand All @@ -147,7 +147,7 @@ describe('resolveAgentModelSelection', () => {
resolveEffectiveAgentModelSelection({ config: legacyConfig, sources: [] }),
).toMatchObject({
providerId: 'minimax',
modelId: 'MiniMax-M3.1-Flash-Preview',
modelId: 'MiniMax-M3.1-Flash',
contextWindow: 512_000,
});
expect(legacyConfig.defaultModel).toBe('custom_provider:minimax-legacy/retired');
Expand Down Expand Up @@ -215,7 +215,7 @@ function registerContextTierSelectionTests(): void {
);

it.each([
['minimax', 'MiniMax-M3.1-Flash-Preview', [2_000_000, 128_000], 2_000_000],
['minimax', 'MiniMax-M3.1-Flash', [2_000_000, 128_000], 2_000_000],
['minimax_api', 'future-model', [2_000_000, 128_000], 2_000_000],
['minimax_api', 'MiniMax-M3', [128_000, 256_000], 256_000],
['minimax_api', 'MiniMax-M3', undefined, 128_000],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('legacy MiniMax compatibility', () => {
const config: LocalRuntimeConfig = {
dataDir: '/tmp/legacy-model-selection',
defaultModel: `custom_provider:${key}/retired`,
provider: { minimax: { models: { 'MiniMax-M3.1-Flash-Preview': {}, 'MiniMax-M3': {} } } },
provider: { minimax: { models: { 'MiniMax-M3.1-Flash': {}, 'MiniMax-M3': {} } } },
custom_provider: {
[key]: {
options: {
Expand All @@ -105,7 +105,7 @@ describe('legacy MiniMax compatibility', () => {
}),
).toEqual({
providerId: 'minimax',
modelId: 'MiniMax-M3.1-Flash-Preview',
modelId: 'MiniMax-M3.1-Flash',
});
expect(config).toEqual(before);
config.custom_provider![key]!.options!.baseURL = 'https://proxy.example/v1';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ describe('custom provider candidate persistence', () => {
expect(outcome.provider?.models).toEqual([]);
expect(h.config.custom_provider?.work?.models).toEqual({});
expect(h.testCalls).toEqual([]);
expect(h.config.defaultModel).toBe('minimax/MiniMax-M3.1-Flash-Preview');
expect(h.config.defaultModel).toBe('minimax/MiniMax-M3.1-Flash');
expect(h.config.defaultModelVariant).toBeUndefined();
});

Expand Down Expand Up @@ -2225,7 +2225,7 @@ describe('custom provider default model recovery', () => {
models: [{ modelId: 'kept' }],
});

expect(h.config.defaultModel).toBe('minimax/MiniMax-M3.1-Flash-Preview');
expect(h.config.defaultModel).toBe('minimax/MiniMax-M3.1-Flash');
expect(h.config.defaultModelVariant).toBeUndefined();
});
});
Expand Down Expand Up @@ -2397,7 +2397,7 @@ describe('custom provider deletion', () => {
await h.service.deleteUserProvider({ providerId: 'custom_provider:work' });
expect(h.config.custom_provider?.work).toBeUndefined();
expect(h.cache.load().provider_status['custom_provider:work']).toBeUndefined();
expect(h.config.defaultModel).toBe('minimax/MiniMax-M3.1-Flash-Preview');
expect(h.config.defaultModel).toBe('minimax/MiniMax-M3.1-Flash');
expect(h.config.defaultModelVariant).toBeUndefined();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { buildLocalRequestPayloadTransform } from './local-turn-payload-transfor

// Mirrors the bundled MiniMax catalog entries that matter for thinking.
const M31_FLASH = {
name: 'M3.1-Flash-Preview',
name: 'M3.1-Flash',
reasoning: true,
tool_call: true,
modalities: { input: ['text', 'image'], output: ['text'] },
Expand Down Expand Up @@ -99,7 +99,7 @@ describe('API-key MiniMax thinking effort', () => {
async (effort) => {
const body = await captureWireBody({
provider: 'minimax_api',
modelId: 'MiniMax-M3.1-Flash-Preview',
modelId: 'MiniMax-M3.1-Flash',
modelConfig: M31_FLASH,
effort,
});
Expand All @@ -111,7 +111,7 @@ describe('API-key MiniMax thinking effort', () => {
it('keeps --effort when a MiniMax model is routed through the API key source', async () => {
const body = await captureWireBody({
provider: 'minimax',
modelId: 'MiniMax-M3.1-Flash-Preview',
modelId: 'MiniMax-M3.1-Flash',
modelConfig: M31_FLASH,
effort: 'high',
minimaxModelSource: 'minimax_api_key',
Expand All @@ -122,7 +122,7 @@ describe('API-key MiniMax thinking effort', () => {
it('sends no effort when none was selected (default)', async () => {
const body = await captureWireBody({
provider: 'minimax_api',
modelId: 'MiniMax-M3.1-Flash-Preview',
modelId: 'MiniMax-M3.1-Flash',
modelConfig: M31_FLASH,
});
expect(body.thinking).toEqual({ type: 'adaptive' });
Expand Down
2 changes: 1 addition & 1 deletion test/byok.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ test(
}
const configPath = path.join(dataDir, "config.yaml");
const savedConfig = () => parseYaml(readFileSync(configPath, "utf8"));
assert.equal(savedConfig().defaultModel, "minimax/MiniMax-M3.1-Flash-Preview");
assert.equal(savedConfig().defaultModel, "minimax/MiniMax-M3.1-Flash");
assert.equal(savedConfig().custom_provider.fixture.models["fixture-model"].limit, undefined);
assert.equal(selected.active, false);
assert.equal(selected.models[0].contextLimit, undefined);
Expand Down
Loading