Skip to content

Commit bfcd342

Browse files
Add claude-opus-4-7 model support
Following ADDINGMODEL.md guidelines, added claude-opus-4-7 model: - Added model configuration to resolve_model_config.py - Added to VERIFIED_ANTHROPIC_MODELS and VERIFIED_OPENHANDS_MODELS - Added to PROMPT_CACHE_MODELS in model_features.py - Added test for the new model configuration Co-authored-by: openhands <openhands@all-hands.dev>
1 parent ba2ac71 commit bfcd342

4 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/run-eval/resolve_model_config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ def _sigterm_handler(signum: int, _frame: object) -> None:
112112
"temperature": 0.0,
113113
},
114114
},
115+
"claude-4.7-opus": {
116+
"id": "claude-4.7-opus",
117+
"display_name": "Claude 4.7 Opus",
118+
"llm_config": {
119+
"model": "litellm_proxy/anthropic/claude-opus-4-7",
120+
"temperature": 0.0,
121+
},
122+
},
115123
"claude-sonnet-4-6": {
116124
"id": "claude-sonnet-4-6",
117125
"display_name": "Claude Sonnet 4.6",

openhands-sdk/openhands/sdk/llm/utils/model_features.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def _supports_reasoning_effort(model: str | None) -> bool:
110110
"claude-sonnet-4-6",
111111
"claude-opus-4-5",
112112
"claude-opus-4-6",
113+
"claude-opus-4-7",
113114
"claude-sonnet-4-6",
114115
]
115116

openhands-sdk/openhands/sdk/llm/utils/verified_models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"claude-haiku-4-5-20251001",
2626
"claude-opus-4-5-20251101",
2727
"claude-opus-4-6",
28+
"claude-opus-4-7",
2829
"claude-sonnet-4-6",
2930
"claude-sonnet-4-20250514",
3031
"claude-opus-4-20250514",
@@ -66,6 +67,7 @@
6667

6768
VERIFIED_OPENHANDS_MODELS = [
6869
"claude-opus-4-6",
70+
"claude-opus-4-7",
6971
"claude-sonnet-4-6",
7072
"gpt-5.4",
7173
"gpt-5.2",

tests/cross/test_resolve_model_config.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,3 +612,13 @@ def test_trinity_large_thinking_config():
612612
assert model["llm_config"]["model"] == "litellm_proxy/trinity-large-thinking"
613613
assert model["llm_config"]["temperature"] == 1.0
614614
assert model["llm_config"]["top_p"] == 0.95
615+
616+
617+
def test_claude_4_7_opus_config():
618+
"""Test that claude-4.7-opus has correct configuration."""
619+
model = MODELS["claude-4.7-opus"]
620+
621+
assert model["id"] == "claude-4.7-opus"
622+
assert model["display_name"] == "Claude 4.7 Opus"
623+
assert model["llm_config"]["model"] == "litellm_proxy/anthropic/claude-opus-4-7"
624+
assert model["llm_config"]["temperature"] == 0.0

0 commit comments

Comments
 (0)