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 @@ -57,6 +57,7 @@
"gemini-3.8-flash",
]
HyperAgentLlm = Literal[
"gpt-6.1-terra",
"gpt-6-luna",
"gpt-5.6-luna",
"gpt-5.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.15.1"
version = "1.15.2"
description = "Python SDK for hyperbrowser"
authors = ["Nikhil Shahi <nshahi1998@gmail.com>"]
license = "MIT"
Expand Down
20 changes: 20 additions & 0 deletions tests/test_hyper_agent_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import pytest
from pydantic import ValidationError

from hyperbrowser.client._request import dump_request
from hyperbrowser.models.agents.hyper_agent import StartHyperAgentTaskParams


@pytest.mark.parametrize("llm", ["gpt-6.1-terra", "gpt-6-luna"])
def test_start_hyper_agent_accepts_gpt6_models(llm: str) -> None:
dumped = dump_request(
{"task": "Inspect the page", "llm": llm, "version": "1.1.0"},
StartHyperAgentTaskParams,
)
assert dumped["llm"] == llm
assert StartHyperAgentTaskParams(task="Inspect the page", llm=llm).llm == llm

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing HyperAgent typecheck coverage

Low Severity

Runtime tests accept gpt-6.1-terra on HyperAgent start params, but tests/typecheck/valid_requests.py never calls hyper_agent.start with that model. mypy and Pyright therefore do not check that the TypedDict request path allows the new ID.

Fix in Cursor Fix in Web

Triggered by learned rule: HyperAgent/Claude LLMs: dual Literals, keep retired IDs, tool schema separate

Reviewed by Cursor Bugbot for commit bfef89b. Configure here.


def test_start_hyper_agent_rejects_unknown_model() -> None:
with pytest.raises(ValidationError):
StartHyperAgentTaskParams(task="Inspect the page", llm="gpt-6-orbit")