Skip to content

Commit 96ffe5b

Browse files
committed
Switch base2 free to minimax 2.7
1 parent 88993e9 commit 96ffe5b

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

agents/__tests__/editor.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ describe('editor agent', () => {
6262
expect(gpt5Editor.model).toBe('openai/gpt-5.1')
6363
})
6464

65-
test('creates glm editor', () => {
66-
const glmEditor = createCodeEditor({ model: 'glm' })
67-
expect(glmEditor.model).toBe('z-ai/glm-5.1')
65+
test('creates minimax editor', () => {
66+
const minimaxEditor = createCodeEditor({ model: 'minimax' })
67+
expect(minimaxEditor.model).toBe('minimax/minimax-m2.7')
6868
})
6969

7070
test('gpt-5 editor does not include think tags in instructions', () => {
@@ -73,10 +73,10 @@ describe('editor agent', () => {
7373
expect(gpt5Editor.instructionsPrompt).not.toContain('</think>')
7474
})
7575

76-
test('glm editor does not include think tags in instructions', () => {
77-
const glmEditor = createCodeEditor({ model: 'glm' })
78-
expect(glmEditor.instructionsPrompt).not.toContain('<think>')
79-
expect(glmEditor.instructionsPrompt).not.toContain('</think>')
76+
test('minimax editor does not include think tags in instructions', () => {
77+
const minimaxEditor = createCodeEditor({ model: 'minimax' })
78+
expect(minimaxEditor.instructionsPrompt).not.toContain('<think>')
79+
expect(minimaxEditor.instructionsPrompt).not.toContain('</think>')
8080
})
8181

8282
test('opus editor includes think tags in instructions', () => {
@@ -88,17 +88,17 @@ describe('editor agent', () => {
8888
test('all variants have same base properties', () => {
8989
const opusEditor = createCodeEditor({ model: 'opus' })
9090
const gpt5Editor = createCodeEditor({ model: 'gpt-5' })
91-
const glmEditor = createCodeEditor({ model: 'glm' })
91+
const minimaxEditor = createCodeEditor({ model: 'minimax' })
9292

9393
// All should have same basic structure
9494
expect(opusEditor.displayName).toBe(gpt5Editor.displayName)
95-
expect(gpt5Editor.displayName).toBe(glmEditor.displayName)
95+
expect(gpt5Editor.displayName).toBe(minimaxEditor.displayName)
9696

9797
expect(opusEditor.outputMode).toBe(gpt5Editor.outputMode)
98-
expect(gpt5Editor.outputMode).toBe(glmEditor.outputMode)
98+
expect(gpt5Editor.outputMode).toBe(minimaxEditor.outputMode)
9999

100100
expect(opusEditor.toolNames).toEqual(gpt5Editor.toolNames)
101-
expect(gpt5Editor.toolNames).toEqual(glmEditor.toolNames)
101+
expect(gpt5Editor.toolNames).toEqual(minimaxEditor.toolNames)
102102
})
103103
})
104104

agents/base2/base2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function createBase2(
2828

2929
return {
3030
publisher,
31-
model: isFree ? 'z-ai/glm-5.1' : 'anthropic/claude-opus-4.6',
31+
model: isFree ? 'minimax/minimax-m2.7' : 'anthropic/claude-opus-4.6',
3232
providerOptions: isFree ? {
3333
data_collection: 'deny',
3434
} : {

agents/editor/editor-lite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { createCodeEditor } from './editor'
33
import type { AgentDefinition } from '../types/agent-definition'
44

55
const definition: AgentDefinition = {
6-
...createCodeEditor({ model: 'glm' }),
6+
...createCodeEditor({ model: 'minimax' }),
77
id: 'editor-lite',
88
}
99
export default definition

agents/editor/editor.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ import { publisher } from '../constants'
44
import type { AgentDefinition } from '../types/agent-definition'
55

66
export const createCodeEditor = (options: {
7-
model: 'gpt-5' | 'opus' | 'glm'
7+
model: 'gpt-5' | 'opus' | 'minimax'
88
}): Omit<AgentDefinition, 'id'> => {
99
const { model } = options
1010
return {
1111
publisher,
1212
model:
1313
options.model === 'gpt-5'
1414
? 'openai/gpt-5.1'
15-
: options.model === 'glm'
16-
? 'z-ai/glm-5.1'
15+
: options.model === 'minimax'
16+
? 'minimax/minimax-m2.7'
1717
: 'anthropic/claude-opus-4.6',
1818
...(options.model === 'opus' && {
1919
providerOptions: {
@@ -65,7 +65,7 @@ OR for new files or major rewrites:
6565
}
6666
</codebuff_tool_call>
6767
68-
${model === 'gpt-5' || model === 'glm'
68+
${model === 'gpt-5' || model === 'minimax'
6969
? ''
7070
: `Before you start writing your implementation, you should use <think> tags to think about the best way to implement the changes.
7171

agents/reviewer/code-reviewer-lite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createReviewer } from './code-reviewer'
55
const definition: SecretAgentDefinition = {
66
id: 'code-reviewer-lite',
77
publisher,
8-
...createReviewer('z-ai/glm-5.1'),
8+
...createReviewer('minimax/minimax-m2.7'),
99
}
1010

1111
export default definition

0 commit comments

Comments
 (0)