From b75d75e995f9e3869860596aa884d5d6f60a4459 Mon Sep 17 00:00:00 2001 From: KevinHuSh Date: Fri, 26 Apr 2024 09:58:22 +0800 Subject: [PATCH] fix youdao bug (#551) ### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/db/init_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/db/init_data.py b/api/db/init_data.py index ecd311473..d0f4d86fe 100644 --- a/api/db/init_data.py +++ b/api/db/init_data.py @@ -347,8 +347,8 @@ def init_llm_factory(): LLMService.filter_delete([LLM.fid == "Local"]) LLMService.filter_delete([LLM.fid == "Moonshot", LLM.llm_name == "flag-embedding"]) TenantLLMService.filter_delete([TenantLLM.llm_factory == "Moonshot", TenantLLM.llm_name == "flag-embedding"]) - LLMFactoriesService.filter_update([LLMFactoriesService.model.name == "QAnything"], {"name": "Youdao"}) - LLMService.filter_update([LLMService.model.fid == "QAnything"], {"fid": "Youdao"}) + LLMFactoriesService.filter_delete([LLMFactoriesService.model.name == "QAnything"]) + LLMService.filter_delete([LLMService.model.fid == "QAnything"]) TenantLLMService.filter_update([TenantLLMService.model.llm_factory == "QAnything"], {"llm_factory": "Youdao"}) """ drop table llm;