Skip to content

Commit b75d75e

Browse files
authored
fix youdao bug (#551)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
1 parent 76c477f commit b75d75e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/db/init_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ def init_llm_factory():
347347
LLMService.filter_delete([LLM.fid == "Local"])
348348
LLMService.filter_delete([LLM.fid == "Moonshot", LLM.llm_name == "flag-embedding"])
349349
TenantLLMService.filter_delete([TenantLLM.llm_factory == "Moonshot", TenantLLM.llm_name == "flag-embedding"])
350-
LLMFactoriesService.filter_update([LLMFactoriesService.model.name == "QAnything"], {"name": "Youdao"})
351-
LLMService.filter_update([LLMService.model.fid == "QAnything"], {"fid": "Youdao"})
350+
LLMFactoriesService.filter_delete([LLMFactoriesService.model.name == "QAnything"])
351+
LLMService.filter_delete([LLMService.model.fid == "QAnything"])
352352
TenantLLMService.filter_update([TenantLLMService.model.llm_factory == "QAnything"], {"llm_factory": "Youdao"})
353353
"""
354354
drop table llm;

0 commit comments

Comments
 (0)