Skip to content

Commit 4ffaa97

Browse files
authored
Add support for claude-4-5-haiku (#768)
1 parent aa30853 commit 4ffaa97

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

openhands/sdk/llm/llm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,9 @@ def _coerce_inputs(cls, data):
283283

284284
# default reasoning_effort unless Gemini 2.5
285285
# (we keep consistent with old behavior)
286-
if d.get("reasoning_effort") is None and (
287-
"gemini-2.5-pro" not in model_val and "claude-sonnet-4-5" not in model_val
286+
excluded_models = ["gemini-2.5-pro", "claude-sonnet-4-5", "claude-haiku-4-5"]
287+
if d.get("reasoning_effort") is None and not any(
288+
model in model_val for model in excluded_models
288289
):
289290
d["reasoning_effort"] = "high"
290291

openhands/sdk/llm/utils/model_features.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ class ModelFeatures:
125125
# We did not include sonnet 3.7 and 4 here as they don't brings
126126
# significant performance improvements for agents
127127
"claude-sonnet-4-5*",
128+
"claude-haiku-4-5*",
128129
]
129130

130131
PROMPT_CACHE_PATTERNS: list[str] = [

openhands/sdk/llm/utils/verified_models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
VERIFIED_ANTHROPIC_MODELS = [
1717
"claude-sonnet-4-5-20250929",
18+
"claude-haiku-4-5-20251001",
1819
"claude-sonnet-4-20250514",
1920
"claude-opus-4-20250514",
2021
"claude-opus-4-1-20250805",
@@ -35,6 +36,7 @@
3536

3637
VERIFIED_OPENHANDS_MODELS = [
3738
"claude-sonnet-4-5-20250929",
39+
"claude-haiku-4-5-20251001",
3840
"gpt-5-codex",
3941
"gpt-5-2025-08-07",
4042
"gpt-5-mini-2025-08-07",

0 commit comments

Comments
 (0)