Docs: update latest updates. (#11188)

### Type of change

- [x] Documentation Update
This commit is contained in:
Kevin Hu
2025-11-12 10:38:33 +08:00
committed by GitHub
parent 09e971dcc8
commit e9de25c973
9 changed files with 9 additions and 16 deletions

View File

@ -89,19 +89,12 @@ def init_superuser():
def init_llm_factory():
try:
LLMService.filter_delete([(LLM.fid == "MiniMax" or LLM.fid == "Minimax")])
LLMService.filter_delete([(LLM.fid == "cohere")])
LLMFactoriesService.filter_delete([LLMFactories.name == "cohere"])
except Exception:
pass
LLMFactoriesService.filter_delete([1 == 1])
factory_llm_infos = settings.FACTORY_LLM_INFOS
for factory_llm_info in factory_llm_infos:
info = deepcopy(factory_llm_info)
llm_infos = info.pop("llm")
try:
LLMFactoriesService.filter_delete([LLMFactories.name == factory_llm_info["name"]])
LLMFactoriesService.save(**info)
except Exception:
pass