Skip to content

Commit 2b56600

Browse files
authored
add claude 4.5 opus (#1358)
# why adds support for using claude 4.5 opus with cua # what changed added opus to model maps # test plan <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds support for Anthropic Claude 4.5 Opus in CUA. Registers anthropic/claude-opus-4-5-20251101 and maps it to the Anthropic provider. <sup>Written for commit 2e54c27. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
1 parent bb85ad9 commit 2b56600

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.changeset/wide-doors-allow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@browserbasehq/stagehand": patch
3+
---
4+
5+
Add support for 4.5 opus in cua agent

packages/core/lib/v3/agent/AgentProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const modelToAgentProviderMap: Record<string, AgentProviderType> = {
1919
"claude-3-7-sonnet-latest": "anthropic",
2020
"claude-sonnet-4-20250514": "anthropic",
2121
"claude-sonnet-4-5-20250929": "anthropic",
22+
"claude-opus-4-5-20251101": "anthropic",
2223
"claude-haiku-4-5-20251001": "anthropic",
2324
"gemini-2.5-computer-use-preview-10-2025": "google",
2425
"fara-7b": "microsoft",

packages/core/lib/v3/types/public/agent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ export const AVAILABLE_CUA_MODELS = [
238238
"openai/computer-use-preview",
239239
"openai/computer-use-preview-2025-03-11",
240240
"anthropic/claude-3-7-sonnet-latest",
241+
"anthropic/claude-opus-4-5-20251101",
241242
"anthropic/claude-haiku-4-5-20251001",
242243
"anthropic/claude-sonnet-4-20250514",
243244
"anthropic/claude-sonnet-4-5-20250929",

packages/core/tests/public-api/llm-and-agents.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ describe("LLM and Agents public API types", () => {
2525
"openai/computer-use-preview",
2626
"openai/computer-use-preview-2025-03-11",
2727
"anthropic/claude-3-7-sonnet-latest",
28+
"anthropic/claude-opus-4-5-20251101",
2829
"anthropic/claude-haiku-4-5-20251001",
2930
"anthropic/claude-sonnet-4-20250514",
3031
"anthropic/claude-sonnet-4-5-20250929",

0 commit comments

Comments
 (0)