Skip to content

Commit 803e34c

Browse files
cursoragentnikhil
andcommitted
feat: add muse-spark-1.2/1.3 and max reasoning for Meta Computer Use
Keep TypedDict and legacy Pydantic request paths aligned with the current API. Co-authored-by: nikhil <nikhil@metlo.com>
1 parent 6a69210 commit 803e34c

3 files changed

Lines changed: 15 additions & 10 deletions

File tree

hyperbrowser/models/consts.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,18 @@
106106
"medium",
107107
"high",
108108
]
109-
MetaComputerUseLlm = Literal["muse-spark-1.1",]
109+
MetaComputerUseLlm = Literal[
110+
"muse-spark-1.1",
111+
"muse-spark-1.2",
112+
"muse-spark-1.3",
113+
]
110114
MetaReasoningEffort = Literal[
111115
"minimal",
112116
"low",
113117
"medium",
114118
"high",
115119
"xhigh",
120+
"max",
116121
]
117122
SessionRegion = Literal[
118123
"us",

tests/test_request_compat.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,16 @@ def test_cua_custom_base_url_serializes_for_mapping_and_legacy_model():
113113
def test_meta_computer_use_serializes_for_mapping_and_legacy_model():
114114
mapping = {
115115
"task": "Complete the task",
116-
"llm": "muse-spark-1.1",
117-
"reasoning_effort": "xhigh",
116+
"llm": "muse-spark-1.3",
117+
"reasoning_effort": "max",
118118
"use_custom_api_keys": True,
119119
"api_keys": {"meta": "meta-key"},
120120
"use_computer_action": True,
121121
}
122122
legacy = StartMetaComputerUseTaskParams(
123123
task="Complete the task",
124-
llm="muse-spark-1.1",
125-
reasoning_effort="xhigh",
124+
llm="muse-spark-1.3",
125+
reasoning_effort="max",
126126
use_custom_api_keys=True,
127127
api_keys=MetaComputerUseApiKeys(meta="meta-key"),
128128
use_computer_action=True,
@@ -134,8 +134,8 @@ def test_meta_computer_use_serializes_for_mapping_and_legacy_model():
134134
)
135135
assert dump_request(mapping, StartMetaComputerUseTaskParams) == {
136136
"task": "Complete the task",
137-
"llm": "muse-spark-1.1",
138-
"reasoningEffort": "xhigh",
137+
"llm": "muse-spark-1.3",
138+
"reasoningEffort": "max",
139139
"useCustomApiKeys": True,
140140
"apiKeys": {"meta": "meta-key"},
141141
"useComputerAction": True,

tests/typecheck/valid_requests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ def valid_sync_requests(client: Hyperbrowser) -> None:
109109
client.agents.meta_computer_use.start(
110110
{
111111
"task": "Complete the task",
112-
"llm": "muse-spark-1.1",
113-
"reasoning_effort": "medium",
112+
"llm": "muse-spark-1.3",
113+
"reasoning_effort": "max",
114114
"use_custom_api_keys": True,
115115
"api_keys": {"meta": "meta-key"},
116116
}
@@ -245,7 +245,7 @@ async def valid_async_requests(client: AsyncHyperbrowser) -> None:
245245
await client.agents.meta_computer_use.start(
246246
{
247247
"task": "Complete the task",
248-
"llm": "muse-spark-1.1",
248+
"llm": "muse-spark-1.2",
249249
"reasoning_effort": "xhigh",
250250
}
251251
)

0 commit comments

Comments
 (0)