Skip to content

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

Fix: remove deprecated novitaAI. (#7511)

Kevin Hu9849230a0455
diff --git a/api/db/init_data.py b/api/db/init_data.py
index aa2e3efc57..f10aa64617 100644
--- a/api/db/init_data.py
+++ b/api/db/init_data.py
@@ -119,7 +119,7 @@ def init_llm_factory():
except Exception:
pass
- LLMFactoriesService.filter_delete([LLMFactories.name == "Local"])
+ LLMFactoriesService.filter_delete([(LLMFactories.name == "Local") | (LLMFactories.name == "novita.ai")])
LLMService.filter_delete([LLM.fid == "Local"])
LLMService.filter_delete([LLM.llm_name == "qwen-vl-max"])
LLMService.filter_delete([LLM.fid == "Moonshot", LLM.llm_name == "flag-embedding"])