KevinHuSh commited on
Commit
26a32c0
·
1 Parent(s): 9279e72

fix youdao bug (#551)

Browse files

### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Files changed (1) hide show
  1. api/db/init_data.py +2 -2
api/db/init_data.py CHANGED
@@ -347,8 +347,8 @@ def init_llm_factory():
347
  LLMService.filter_delete([LLM.fid == "Local"])
348
  LLMService.filter_delete([LLM.fid == "Moonshot", LLM.llm_name == "flag-embedding"])
349
  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"})
352
  TenantLLMService.filter_update([TenantLLMService.model.llm_factory == "QAnything"], {"llm_factory": "Youdao"})
353
  """
354
  drop table llm;
 
347
  LLMService.filter_delete([LLM.fid == "Local"])
348
  LLMService.filter_delete([LLM.fid == "Moonshot", LLM.llm_name == "flag-embedding"])
349
  TenantLLMService.filter_delete([TenantLLM.llm_factory == "Moonshot", TenantLLM.llm_name == "flag-embedding"])
350
+ LLMFactoriesService.filter_delete([LLMFactoriesService.model.name == "QAnything"])
351
+ LLMService.filter_delete([LLMService.model.fid == "QAnything"])
352
  TenantLLMService.filter_update([TenantLLMService.model.llm_factory == "QAnything"], {"llm_factory": "Youdao"})
353
  """
354
  drop table llm;