Skip to content

Commit 3173cfd

Browse files
authored
Add claude-sonnet-5-5 to Claude Computer Use (#132)
Accept the Sonnet 5.5 model added in browserctrl and bump the SDK to 1.9.2.
1 parent c36d3d9 commit 3173cfd

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

‎hyperbrowser/models/consts.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"claude-opus-4-7",
7777
"claude-opus-4-8",
7878
"claude-haiku-4-5-20251001",
79+
"claude-sonnet-5-5",
7980
"claude-sonnet-5",
8081
"claude-sonnet-4-6",
8182
"claude-sonnet-4-5",

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "hyperbrowser"
3-
version = "1.9.1"
3+
version = "1.9.2"
44
description = "Python SDK for hyperbrowser"
55
authors = ["Nikhil Shahi <nshahi1998@gmail.com>"]
66
license = "MIT"

‎tests/test_claude_computer_use_models.py‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,23 @@ def test_start_claude_computer_use_accepts_opus_5_5() -> None:
1515
)
1616
assert dumped["llm"] == "claude-opus-5-5"
1717
assert dumped["reasoningEffort"] == "max"
18+
19+
20+
def test_start_claude_computer_use_accepts_sonnet_5_5() -> None:
21+
mapping = {
22+
"task": "Inspect the page",
23+
"llm": "claude-sonnet-5-5",
24+
"reasoning_effort": "max",
25+
}
26+
legacy = StartClaudeComputerUseTaskParams(
27+
task="Inspect the page",
28+
llm="claude-sonnet-5-5",
29+
reasoning_effort="max",
30+
)
31+
32+
dumped_mapping = dump_request(mapping, StartClaudeComputerUseTaskParams)
33+
dumped_legacy = dump_request(legacy, StartClaudeComputerUseTaskParams)
34+
35+
assert dumped_mapping == dumped_legacy
36+
assert dumped_mapping["llm"] == "claude-sonnet-5-5"
37+
assert dumped_mapping["reasoningEffort"] == "max"

‎tests/typecheck/valid_requests.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ async def valid_async_requests(client: AsyncHyperbrowser) -> None:
295295
await client.agents.claude_computer_use.start(
296296
{
297297
"task": "Complete the task",
298-
"llm": "claude-sonnet-4-6",
298+
"llm": "claude-sonnet-5-5",
299299
"reasoning_effort": "max",
300300
}
301301
)

0 commit comments

Comments
 (0)