Skip to content

Commit 7f0ed47

Browse files
author
PR Bot
committed
feat: upgrade MiniMax default model to M2.7
- Update default model from MiniMax-M2.5 to MiniMax-M2.7 - Update E2E tests to use M2.7 and M2.7-highspeed models - Update CONTRIBUTING.md documentation - Keep all previous models as alternatives
1 parent 46d473f commit 7f0ed47

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Bolt uses the [AI SDK](https://github.com/vercel/ai) to integrate with AI
3434
models. Bolt supports the following LLM providers:
3535

3636
- **Anthropic** (default): Claude Sonnet 3.5. Get an API key from the [Anthropic API Console](https://console.anthropic.com/).
37-
- **MiniMax**: MiniMax-M2.5 and MiniMax-M2.5-highspeed (204K context). Get an API key from the [MiniMax Platform](https://platform.minimax.io/).
37+
- **MiniMax**: MiniMax-M2.7 (default) and MiniMax-M2.7-highspeed. Get an API key from the [MiniMax Platform](https://platform.minimax.io/).
3838

3939
Take a look at how [Bolt uses the AI SDK](https://github.com/stackblitz/bolt.new/tree/main/app/lib/.server/llm)
4040

app/lib/.server/llm/minimax.e2e.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const BASE_URL = env.MINIMAX_BASE_URL || 'https://api.minimax.io/v1';
66

77
describe.skipIf(!API_KEY)('MiniMax E2E', () => {
88
it(
9-
'completes basic chat with MiniMax-M2.5',
9+
'completes basic chat with MiniMax-M2.7',
1010
async () => {
1111
const response = await fetch(`${BASE_URL}/chat/completions`, {
1212
method: 'POST',
@@ -15,7 +15,7 @@ describe.skipIf(!API_KEY)('MiniMax E2E', () => {
1515
Authorization: `Bearer ${API_KEY}`,
1616
},
1717
body: JSON.stringify({
18-
model: 'MiniMax-M2.5',
18+
model: 'MiniMax-M2.7',
1919
messages: [{ role: 'user', content: 'Say "test passed"' }],
2020
max_tokens: 20,
2121
temperature: 1.0,
@@ -42,7 +42,7 @@ describe.skipIf(!API_KEY)('MiniMax E2E', () => {
4242
Authorization: `Bearer ${API_KEY}`,
4343
},
4444
body: JSON.stringify({
45-
model: 'MiniMax-M2.5',
45+
model: 'MiniMax-M2.7',
4646
messages: [{ role: 'user', content: 'Count 1 to 3' }],
4747
max_tokens: 50,
4848
stream: true,
@@ -82,7 +82,7 @@ describe.skipIf(!API_KEY)('MiniMax E2E', () => {
8282
);
8383

8484
it(
85-
'works with MiniMax-M2.5-highspeed model',
85+
'works with MiniMax-M2.7-highspeed model',
8686
async () => {
8787
const response = await fetch(`${BASE_URL}/chat/completions`, {
8888
method: 'POST',
@@ -91,7 +91,7 @@ describe.skipIf(!API_KEY)('MiniMax E2E', () => {
9191
Authorization: `Bearer ${API_KEY}`,
9292
},
9393
body: JSON.stringify({
94-
model: 'MiniMax-M2.5-highspeed',
94+
model: 'MiniMax-M2.7-highspeed',
9595
messages: [{ role: 'user', content: 'Say "highspeed test passed"' }],
9696
max_tokens: 20,
9797
temperature: 1.0,

app/lib/.server/llm/model.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ describe('model', () => {
6464
});
6565
});
6666

67-
it('uses MiniMax-M2.5 model', () => {
67+
it('uses MiniMax-M2.7 model', () => {
6868
getMiniMaxModel('test-key');
6969

7070
const mockFn = vi.mocked(createOpenAI).mock.results[0].value;
71-
expect(mockFn).toHaveBeenCalledWith('MiniMax-M2.5');
71+
expect(mockFn).toHaveBeenCalledWith('MiniMax-M2.7');
7272
});
7373
});
7474

app/lib/.server/llm/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function getMiniMaxModel(apiKey: string, baseURL?: string) {
1717
baseURL: baseURL || 'https://api.minimax.io/v1',
1818
});
1919

20-
return openai('MiniMax-M2.5');
20+
return openai('MiniMax-M2.7');
2121
}
2222

2323
export function getModel(provider: LLMProvider, apiKey: string, baseURL?: string) {

0 commit comments

Comments
 (0)