From 9849230a0455f6bbb9f402ab6ae03ba70484c6e2 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Wed, 7 May 2025 19:36:16 +0800 Subject: [PATCH] Fix: remove deprecated novitaAI. (#7511) ### What problem does this PR solve? #7484 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/db/init_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/db/init_data.py b/api/db/init_data.py index aa2e3efc5..f10aa6461 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"])