From 22bf2330985c75dd43bd1ba82bbfd1ea4f207715 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Wed, 14 Aug 2024 13:26:44 +0800 Subject: [PATCH] refine llm init --- api/db/init_data.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/db/init_data.py b/api/db/init_data.py index cc337cce7d..5095c3462a 100644 --- a/api/db/init_data.py +++ b/api/db/init_data.py @@ -107,6 +107,7 @@ def init_llm_factory(): LLMFactoriesService.save(**factory_llm_info) except Exception as e: pass + LLMService.filter_delete([LLM.fid == factory_llm_info["name"]]) for llm_info in llm_infos: llm_info["fid"] = factory_llm_info["name"] try: