Skip to content
Closed
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
5 changes: 5 additions & 0 deletions .github/run-eval/resolve_model_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@
"display_name": "GPT-5.3 Codex",
"llm_config": {"model": "litellm_proxy/gpt-5-3-codex"},
},
"gpt-5.4-codex": {
"id": "gpt-5.4-codex",
"display_name": "GPT-5.4 Codex",
"llm_config": {"model": "litellm_proxy/gpt-5.4-codex"},
},
"gpt-5.2-high-reasoning": {
"id": "gpt-5.2-high-reasoning",
"display_name": "GPT-5.2 High Reasoning",
Expand Down
8 changes: 7 additions & 1 deletion openhands-sdk/openhands/sdk/llm/utils/model_prompt_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ class ModelPromptSpec(BaseModel):
"openai_gpt": (
(
"gpt-5-codex",
("gpt-5-codex", "gpt-5.1-codex", "gpt-5.2-codex", "gpt-5.3-codex"),
(
"gpt-5-codex",
"gpt-5.1-codex",
"gpt-5.2-codex",
"gpt-5.3-codex",
"gpt-5.4-codex",
),
),
("gpt-5", ("gpt-5", "gpt-5.1", "gpt-5.2")),
),
Expand Down
9 changes: 9 additions & 0 deletions tests/github_workflows/test_resolve_model_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,3 +491,12 @@ def test_models_importable_without_litellm():
f"stderr: {result.stderr}"
)
assert "SUCCESS" in result.stdout


def test_gpt_5_4_codex_config():
"""Test that gpt-5.4-codex has correct configuration."""
model = MODELS["gpt-5.4-codex"]

assert model["id"] == "gpt-5.4-codex"
assert model["display_name"] == "GPT-5.4 Codex"
assert model["llm_config"]["model"] == "litellm_proxy/gpt-5.4-codex"
1 change: 1 addition & 0 deletions tests/sdk/llm/test_model_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def test_model_matches(name, pattern, expected):
# GPT-5 family
("gpt-5.2", True),
("gpt-5.2-codex", True),
("gpt-5.4-codex", True),
("gpt-4o", False),
("claude-3-5-sonnet", False),
("gemini-1.5-pro", False),
Expand Down
Loading