Skip to content

Commit 6092a7e

Browse files
feat(llm): add gpt-5.2-codex to verified models (#1893)
Co-authored-by: openhands <[email protected]>
1 parent 62b4744 commit 6092a7e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
VERIFIED_OPENAI_MODELS = [
22
"gpt-5.2",
3+
"gpt-5.2-codex",
34
"gpt-5.1",
45
"gpt-5.1-codex-max",
56
"gpt-5.1-codex",
@@ -46,6 +47,7 @@
4647
"claude-opus-4-5-20251101",
4748
"claude-sonnet-4-5-20250929",
4849
"gpt-5.2",
50+
"gpt-5.2-codex",
4951
"gpt-5.1-codex-max",
5052
"gpt-5.1-codex",
5153
"gpt-5.1",

tests/sdk/llm/test_model_features.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ def test_model_matches(name, pattern, expected):
3636
# Gemini 3 family
3737
("gemini-3-pro-preview", True),
3838
("gemini-3-flash-preview", True),
39+
# GPT-5 family
40+
("gpt-5.2", True),
41+
("gpt-5.2-codex", True),
3942
("gpt-4o", False),
4043
("claude-3-5-sonnet", False),
4144
("gemini-1.5-pro", False),
@@ -222,6 +225,8 @@ def test_supports_stop_words_false_models(model):
222225
("gpt-5.1", True),
223226
("openai/gpt-5.1-codex-mini", True),
224227
("gpt-5", True),
228+
("gpt-5.2", True),
229+
("gpt-5.2-codex", True),
225230
("openai/gpt-5-mini", True),
226231
("codex-mini-latest", True),
227232
("openai/codex-mini-latest", True),
@@ -256,6 +261,7 @@ def test_force_string_serializer_full_model_names():
256261
("gpt-5", True),
257262
# New GPT-5.2 family should support extended retention
258263
("gpt-5.2", True),
264+
("gpt-5.2-codex", True),
259265
("openai/gpt-5.2-chat-latest", True),
260266
("openai/gpt-5.2-pro", True),
261267
("openai/gpt-5-mini", False),

0 commit comments

Comments
 (0)