Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

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

sirj0k3rb2b63600f164
diff --git a/conf/llm_factories.json b/conf/llm_factories.json
index 09273fe245..e8d02ed88e 100644
--- a/conf/llm_factories.json
+++ b/conf/llm_factories.json
@@ -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",
diff --git a/conf/models/openai.json b/conf/models/openai.json
index ae252fdccc..33e4a10506 100644
--- a/conf/models/openai.json
+++ b/conf/models/openai.json
@@ -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,
diff --git a/test/testcases/test_web_api/test_llm_app/test_llm_list_unit.py b/test/testcases/test_web_api/test_llm_app/test_llm_list_unit.py
index e0442e0aa7..1b4dd47a6a 100644
--- a/test/testcases/test_web_api/test_llm_app/test_llm_list_unit.py
+++ b/test/testcases/test_web_api/test_llm_app/test_llm_list_unit.py
@@ -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