Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions hyperbrowser/models/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"claude-opus-4-7",
"claude-opus-4-8",
"claude-haiku-4-5-20251001",
"claude-sonnet-5-5",
"claude-sonnet-5",
"claude-sonnet-4-6",
"claude-sonnet-4-5",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hyperbrowser"
version = "1.9.1"
version = "1.9.2"
description = "Python SDK for hyperbrowser"
authors = ["Nikhil Shahi <nshahi1998@gmail.com>"]
license = "MIT"
Expand Down
20 changes: 20 additions & 0 deletions tests/test_claude_computer_use_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,23 @@ def test_start_claude_computer_use_accepts_opus_5_5() -> None:
)
assert dumped["llm"] == "claude-opus-5-5"
assert dumped["reasoningEffort"] == "max"


def test_start_claude_computer_use_accepts_sonnet_5_5() -> None:
mapping = {
"task": "Inspect the page",
"llm": "claude-sonnet-5-5",
"reasoning_effort": "max",
}
legacy = StartClaudeComputerUseTaskParams(
task="Inspect the page",
llm="claude-sonnet-5-5",
reasoning_effort="max",
)

dumped_mapping = dump_request(mapping, StartClaudeComputerUseTaskParams)
dumped_legacy = dump_request(legacy, StartClaudeComputerUseTaskParams)

assert dumped_mapping == dumped_legacy
assert dumped_mapping["llm"] == "claude-sonnet-5-5"
assert dumped_mapping["reasoningEffort"] == "max"
2 changes: 1 addition & 1 deletion tests/typecheck/valid_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ async def valid_async_requests(client: AsyncHyperbrowser) -> None:
await client.agents.claude_computer_use.start(
{
"task": "Complete the task",
"llm": "claude-sonnet-4-6",
"llm": "claude-sonnet-5-5",
"reasoning_effort": "max",
}
)
Expand Down