mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: filter builtin llm factories. (#11163)
### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -33,7 +33,7 @@ from rag.llm import EmbeddingModel, ChatModel, RerankModel, CvModel, TTSModel
|
|||||||
def factories():
|
def factories():
|
||||||
try:
|
try:
|
||||||
fac = get_allowed_llm_factories()
|
fac = get_allowed_llm_factories()
|
||||||
fac = [f.to_dict() for f in fac if f.name not in ["Youdao", "FastEmbed", "BAAI"]]
|
fac = [f.to_dict() for f in fac if f.name not in ["Youdao", "FastEmbed", "BAAI", "Builtin"]]
|
||||||
llms = LLMService.get_all()
|
llms = LLMService.get_all()
|
||||||
mdl_types = {}
|
mdl_types = {}
|
||||||
for m in llms:
|
for m in llms:
|
||||||
|
|||||||
Reference in New Issue
Block a user