Skip to content

Commit 38992aa

Browse files
committed
Update Claude model types for current models
- Add current Claude models to the public type unions - Mark retired/deprecated IDs in comments - Refresh the browser-use tool schema
1 parent 1a9eb35 commit 38992aa

2 files changed

Lines changed: 17 additions & 10 deletions

File tree

‎hyperbrowser/models/consts.py‎

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@
4444
"gpt-5-mini",
4545
"claude-sonnet-5",
4646
"claude-sonnet-4-6",
47-
"claude-sonnet-4-5",
4847
"claude-haiku-5-5",
48+
# Deprecated: retires November 30, 2026. Use "claude-sonnet-5".
49+
"claude-sonnet-4-5",
50+
# Retired: accepted for backward compatibility and mapped by the API.
4951
"claude-sonnet-4-20250514",
5052
"claude-3-7-sonnet-20250219",
5153
"claude-3-5-sonnet-20241022",
@@ -68,8 +70,9 @@
6870
"gpt-4.1-nano",
6971
"claude-sonnet-5",
7072
"claude-sonnet-4-6",
71-
"claude-sonnet-4-5",
7273
"claude-haiku-5-5",
74+
# Deprecated: retires November 30, 2026. Use "claude-sonnet-5".
75+
"claude-sonnet-4-5",
7376
"gemini-2.5-flash",
7477
"gemini-3.8-flash",
7578
"gemini-3.7-flash",
@@ -79,18 +82,22 @@
7982
"claude-opus-5-5",
8083
"claude-fable-5-1",
8184
"claude-opus-5",
82-
"claude-opus-4-5",
83-
"claude-opus-4-6",
84-
"claude-opus-4-7",
8585
"claude-opus-4-8",
86-
"claude-haiku-5-5",
87-
"claude-haiku-4-5-20251001",
86+
"claude-opus-4-7",
87+
"claude-opus-4-6",
88+
"claude-opus-4-5",
8889
"claude-sonnet-5-5",
8990
"claude-sonnet-5",
9091
"claude-sonnet-4-6",
92+
"claude-haiku-5-5",
93+
"claude-haiku-4-5-20251001",
94+
# Deprecated: retires November 30, 2026. Use "claude-sonnet-5-5".
9195
"claude-sonnet-4-5",
96+
# Retired: accepted for backward compatibility and mapped by the API.
9297
"claude-sonnet-4-20250514",
9398
"claude-3-7-sonnet-20250219",
99+
"claude-opus-4-20250514",
100+
"claude-4-opus-20250514",
94101
]
95102
ClaudeComputerUseReasoningEffort = Literal[
96103
"low",

‎hyperbrowser/tools/schema.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ def get_scrape_options(formats: List[scrape_types] = ["markdown"]):
146146
"enum": [
147147
"gpt-4o",
148148
"gpt-4o-mini",
149-
"claude-3-7-sonnet-20250219",
150-
"claude-3-5-sonnet-20241022",
151-
"claude-3-5-haiku-20241022",
149+
"claude-sonnet-5",
150+
"claude-sonnet-4-6",
151+
"claude-haiku-5-5",
152152
"gemini-2.0-flash",
153153
],
154154
"default": "gemini-2.0-flash",

0 commit comments

Comments
 (0)