Skip to content

Commit 1781d22

Browse files
committed
replace opus 4 with opus 4.1
1 parent 22b9e8d commit 1781d22

File tree

5 files changed

+11
-19
lines changed

5 files changed

+11
-19
lines changed

.agents/base-max.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const config: AgentConfig = {
66
id: 'base-max',
77
version,
88
publisher,
9-
model: 'anthropic/claude-4-opus-20250522',
9+
model: 'anthropic/claude-opus-4.1',
1010
displayName: 'Buffy the Enthusiastic Coding Assistant',
1111

1212
inputSchema: {

.agents/types/agent-config.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@ export interface AgentConfig {
6060
}
6161

6262
/** Whether to include conversation history from the parent agent in context.
63-
*
63+
*
6464
* Defaults to false.
6565
* Use this if the agent needs to know all the previous messages in the conversation.
6666
*/
6767
includeMessageHistory?: boolean
6868

6969
/** How the agent should output a response to its parent (defaults to 'last_message')
70-
*
70+
*
7171
* last_message: The last message from the agent, typcically after using tools.
72-
*
72+
*
7373
* all_messages: All messages from the agent, including tool calls and results.
74-
*
74+
*
7575
* json: Make the agent output a JSON object. Can be used with outputSchema or without if you want freeform json output.
7676
*/
7777
outputMode?: 'last_message' | 'all_messages' | 'json'
@@ -84,21 +84,21 @@ export interface AgentConfig {
8484
// ============================================================================
8585

8686
/** Prompt for when to spawn this agent as a subagent. Include the main purpose and use cases.
87-
*
87+
*
8888
* This field is key if the agent is a subagent and intended to be spawned. */
8989
parentPrompt?: string
9090

9191
/** Background information for the agent. Fairly optional. Prefer using instructionsPrompt for agent instructions. */
9292
systemPrompt?: string
9393

9494
/** Instructions for the agent.
95-
*
95+
*
9696
* IMPORTANT: Updating this prompt is the best way to shape the agent's behavior.
9797
* This prompt is inserted after each user input. */
9898
instructionsPrompt?: string
9999

100100
/** Prompt inserted at each agent step.
101-
*
101+
*
102102
* Powerful for changing the agent's behavior, but usually not necessary for smart models.
103103
* Prefer instructionsPrompt for most instructions. */
104104
stepPrompt?: string
@@ -281,7 +281,7 @@ export type CodeAnalysisToolSet = FileTools | CodeAnalysisTools | 'end_turn'
281281
export type ModelName =
282282
// Verified OpenRouter Models
283283
| 'anthropic/claude-4-sonnet-20250522'
284-
| 'anthropic/claude-4-opus-20250522'
284+
| 'anthropic/claude-opus-4.1'
285285
| 'anthropic/claude-3.5-haiku-20241022'
286286
| 'anthropic/claude-3.5-sonnet-20240620'
287287
| 'openai/gpt-4o-2024-11-20'

common/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export type GeminiModel = (typeof geminiModels)[keyof typeof geminiModels]
188188

189189
export const openrouterModels = {
190190
openrouter_claude_sonnet_4: 'anthropic/claude-4-sonnet-20250522',
191-
openrouter_claude_opus_4: 'anthropic/claude-4-opus-20250522',
191+
openrouter_claude_opus_4: 'anthropic/claude-opus-4.1',
192192
openrouter_claude_3_5_haiku: 'anthropic/claude-3.5-haiku-20241022',
193193
openrouter_claude_3_5_sonnet: 'anthropic/claude-3.5-sonnet-20240620',
194194
openrouter_gpt4o: 'openai/gpt-4o-2024-11-20',

common/src/util/types/agent-config.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export type CodeAnalysisToolSet = FileTools | CodeAnalysisTools | 'end_turn'
281281
export type ModelName =
282282
// Verified OpenRouter Models
283283
| 'anthropic/claude-4-sonnet-20250522'
284-
| 'anthropic/claude-4-opus-20250522'
284+
| 'anthropic/claude-opus-4.1'
285285
| 'anthropic/claude-3.5-haiku-20241022'
286286
| 'anthropic/claude-3.5-sonnet-20240620'
287287
| 'openai/gpt-4o-2024-11-20'

npm-app/src/menu.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,6 @@ export function displayGreeting(costMode: CostMode, username: string | null) {
272272
console.log(`${costModeDescription[costMode]}`)
273273
}
274274

275-
if (costMode === 'max') {
276-
console.log(
277-
blueBright(
278-
'\n\nMax mode is now even more powerful, though more expensive, as it uses Claude Opus.\n\n',
279-
),
280-
)
281-
}
282-
283275
if (!isValidProjectRoot(getProjectRoot())) {
284276
console.info(
285277
`Welcome! Codebuff is your AI pair programmer that edits your codebase through natural conversation.

0 commit comments

Comments
 (0)