Adds gpt-5.4-mini and gpt-5.4-nano (#14908)

### What problem does this PR solve?
Includes gpt-5.4-mini and gpt-5.4-nano to the OpenAI model list

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
sirj0k3r
2026-05-14 03:16:24 +01:00
committed by GitHub
parent e577901388
commit b2b63600f1
3 changed files with 31 additions and 1 deletions

View File

@@ -22,6 +22,20 @@
"model_type": "chat",
"is_tools": true
},
{
"llm_name": "gpt-5.4-mini",
"tags": "LLM,CHAT,400k,IMAGE2TEXT",
"max_tokens": 400000,
"model_type": "chat",
"is_tools": true
},
{
"llm_name": "gpt-5.4-nano",
"tags": "LLM,CHAT,400k,IMAGE2TEXT",
"max_tokens": 400000,
"model_type": "chat",
"is_tools": true
},
{
"llm_name": "gpt-5.2-pro",
"tags": "LLM,CHAT,400k,IMAGE2TEXT",

View File

@@ -26,6 +26,22 @@
"vision"
]
},
{
"name": "gpt-5.4-mini",
"max_tokens": 400000,
"model_types": [
"chat",
"vision"
]
},
{
"name": "gpt-5.4-nano",
"max_tokens": 400000,
"model_types": [
"chat",
"vision"
]
},
{
"name": "gpt-5.2-pro",
"max_tokens": 400000,

View File

@@ -269,7 +269,7 @@ def test_openai_catalog_contains_latest_gpt_models_unit():
openai_models = json.load(f)["models"]
model_file_names = {item["name"] for item in openai_models}
for model_name in ["gpt-5.5", "gpt-5.4"]:
for model_name in ["gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano"]:
assert model_name in factory_model_names
assert model_name in model_file_names