Skip to content

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

Fix: remove retired OpenAI models from the preset model list (#21685)

Anand Ba5ad435e1748
diff --git a/conf/llm_factories.json b/conf/llm_factories.json
index 83a6ca501b..333784b731 100644
--- a/conf/llm_factories.json
+++ b/conf/llm_factories.json
@@ -275,13 +275,6 @@
"model_type": "chat",
"is_tools": true
},
- {
- "llm_name": "gpt-5.1-chat-latest",
- "tags": "LLM,CHAT,400k,IMAGE2TEXT",
- "max_tokens": 400000,
- "model_type": "chat",
- "is_tools": true
- },
{
"llm_name": "gpt-5",
"tags": "LLM,CHAT,400k,IMAGE2TEXT",
@@ -303,13 +296,6 @@
"model_type": "chat",
"is_tools": true
},
- {
- "llm_name": "gpt-5-chat-latest",
- "tags": "LLM,CHAT,400k,IMAGE2TEXT",
- "max_tokens": 400000,
- "model_type": "chat",
- "is_tools": false
- },
{
"llm_name": "gpt-4.1",
"tags": "LLM,CHAT,1M,IMAGE2TEXT",
@@ -324,20 +310,6 @@
"model_type": "chat",
"is_tools": true
},
- {
- "llm_name": "gpt-4.1-nano",
- "tags": "LLM,CHAT,1M,IMAGE2TEXT",
- "max_tokens": 1047576,
- "model_type": "chat",
- "is_tools": true
- },
- {
- "llm_name": "gpt-4.5-preview",
- "tags": "LLM,CHAT,128K",
- "max_tokens": 128000,
- "model_type": "chat",
- "is_tools": true
- },
{
"llm_name": "o3",
"tags": "LLM,CHAT,200K,IMAGE2TEXT",
@@ -345,13 +317,6 @@
"model_type": "chat",
"is_tools": true
},
- {
- "llm_name": "o4-mini",
- "tags": "LLM,CHAT,200K,IMAGE2TEXT",
- "max_tokens": 200000,
- "model_type": "chat",
- "is_tools": true
- },
{
"llm_name": "o4-mini-high",
"tags": "LLM,CHAT,200K,IMAGE2TEXT",
@@ -373,20 +338,6 @@
"model_type": "chat",
"is_tools": true
},
- {
- "llm_name": "gpt-3.5-turbo",
- "tags": "LLM,CHAT,4K",
- "max_tokens": 4096,
- "model_type": "chat",
- "is_tools": false
- },
- {
- "llm_name": "gpt-3.5-turbo-16k-0613",
- "tags": "LLM,CHAT,16k",
- "max_tokens": 16385,
- "model_type": "chat",
- "is_tools": false
- },
{
"llm_name": "text-embedding-ada-002",
"tags": "TEXT EMBEDDING,8K",
@@ -415,27 +366,6 @@
"model_type": "speech2text",
"is_tools": false
},
- {
- "llm_name": "gpt-4",
- "tags": "LLM,CHAT,8K",
- "max_tokens": 8191,
- "model_type": "chat",
- "is_tools": false
- },
- {
- "llm_name": "gpt-4-turbo",
- "tags": "LLM,CHAT,8K",
- "max_tokens": 8191,
- "model_type": "chat",
- "is_tools": true
- },
- {
- "llm_name": "gpt-4-32k",
- "tags": "LLM,CHAT,32K",
- "max_tokens": 32768,
- "model_type": "chat",
- "is_tools": false
- },
{
"llm_name": "tts-1",
"tags": "TTS",
diff --git a/conf/models/openai.json b/conf/models/openai.json
index e0973fa050..2ba1807100 100644
--- a/conf/models/openai.json
+++ b/conf/models/openai.json
@@ -157,18 +157,6 @@
"support": true
}
},
- {
- "name": "gpt-5.1-chat-latest",
- "context_length": 128000,
- "max_output": 16384,
- "model_types": [
- "chat",
- "vision"
- ],
- "tools": {
- "support": true
- }
- },
{
"name": "gpt-5",
"context_length": 400000,
@@ -205,18 +193,6 @@
"support": true
}
},
- {
- "name": "gpt-5-chat-latest",
- "context_length": 128000,
- "max_output": 16384,
- "model_types": [
- "chat",
- "vision"
- ],
- "tools": {
- "support": true
- }
- },
{
"name": "gpt-4.1",
"context_length": 1047576,
@@ -241,29 +217,6 @@
"support": true
}
},
- {
- "name": "gpt-4.1-nano",
- "context_length": 1047576,
- "max_output": 32768,
- "model_types": [
- "chat",
- "vision"
- ],
- "tools": {
- "support": true
- }
- },
- {
- "name": "gpt-4.5-preview",
- "context_length": 128000,
- "max_output": 16384,
- "model_types": [
- "chat"
- ],
- "tools": {
- "support": true
- }
- },
{
"name": "gpt-4o-mini",
"context_length": 128000,
@@ -288,28 +241,6 @@
"support": true
}
},
- {
- "name": "gpt-3.5-turbo",
- "context_length": 16385,
- "max_output": 4096,
- "model_types": [
- "chat"
- ],
- "tools": {
- "support": true
- }
- },
- {
- "name": "gpt-3.5-turbo-16k-0613",
- "context_length": 16385,
- "max_output": 4096,
- "model_types": [
- "chat"
- ],
- "tools": {
- "support": true
- }
- },
{
"name": "text-embedding-ada-002",
"max_tokens": 8191,
@@ -341,40 +272,6 @@
"asr"
]
},
- {
- "name": "gpt-4",
- "context_length": 8192,
- "max_output": 8192,
- "model_types": [
- "chat"
- ],
- "tools": {
- "support": true
- }
- },
- {
- "name": "gpt-4-turbo",
- "context_length": 128000,
- "max_output": 4096,
- "model_types": [
- "chat",
- "vision"
- ],
- "tools": {
- "support": true
- }
- },
- {
- "name": "gpt-4-32k",
- "context_length": 32768,
- "max_output": 4096,
- "model_types": [
- "chat"
- ],
- "tools": {
- "support": true
- }
- },
{
"name": "tts-1",
"max_tokens": 2048,