Skip to content

Commit dc1e231

Browse files
committed
High reasoning for glm in free mode
1 parent 48ac10d commit dc1e231

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

agents/editor/editor.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
import { publisher } from '../constants'
33

4-
import type { AgentDefinition} from 'types/agent-definition';
4+
import type { AgentDefinition } from 'types/agent-definition'
55

66
export const createCodeEditor = (options: {
77
model: 'gpt-5' | 'opus' | 'glm'
@@ -15,6 +15,11 @@ export const createCodeEditor = (options: {
1515
: options.model === 'glm'
1616
? 'z-ai/glm-4.7'
1717
: 'anthropic/claude-opus-4.5',
18+
...(model === 'glm' && {
19+
reasoningOptions: {
20+
effort: 'high',
21+
},
22+
}),
1823
displayName: 'Code Editor',
1924
spawnerPrompt:
2025
"Expert code editor that implements code changes based on the user's request. Do not specify an input prompt for this agent; it inherits the context of the entire conversation with the user. Make sure to read any files intended to be edited before spawning this agent as it cannot read files on its own.",
@@ -60,10 +65,9 @@ OR for new files or major rewrites:
6065
}
6166
</codebuff_tool_call>
6267
63-
${
64-
model === 'gpt-5' || model === 'glm'
65-
? ''
66-
: `Before you start writing your implementation, you should use <think> tags to think about the best way to implement the changes.
68+
${model === 'gpt-5' || model === 'glm'
69+
? ''
70+
: `Before you start writing your implementation, you should use <think> tags to think about the best way to implement the changes.
6771
6872
You can also use <think> tags interspersed between tool calls to think about the best way to implement the changes.
6973
@@ -90,7 +94,7 @@ You can also use <think> tags interspersed between tool calls to think about the
9094
</codebuff_tool_call>
9195
9296
</example>`
93-
}
97+
}
9498
9599
Your implementation should:
96100
- Be complete and comprehensive

0 commit comments

Comments
 (0)