mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-13 05:58:59 +08:00
refine llm init (#1938)
### What problem does this PR solve? ### Type of change - [x] Performance Improvement
This commit is contained in:
parent
da8802d010
commit
54fc6dcf01
@ -107,6 +107,7 @@ def init_llm_factory():
|
|||||||
LLMFactoriesService.save(**factory_llm_info)
|
LLMFactoriesService.save(**factory_llm_info)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
|
LLMService.filter_delete([LLM.fid == factory_llm_info["name"]])
|
||||||
for llm_info in llm_infos:
|
for llm_info in llm_infos:
|
||||||
llm_info["fid"] = factory_llm_info["name"]
|
llm_info["fid"] = factory_llm_info["name"]
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user