mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: get_allowed_llm_factories() return type (#11031)
### What problem does this PR solve? Fix: get_allowed_llm_factories() return type #11003 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) <img width="2880" height="215" alt="截图 2025-11-05 17-02-01" src="https://github.com/user-attachments/assets/ee892077-21f9-4b1e-a1d2-b921fa7f6121" />
This commit is contained in:
@ -626,8 +626,8 @@ async def is_strong_enough(chat_model, embedding_model):
|
|||||||
|
|
||||||
|
|
||||||
def get_allowed_llm_factories() -> list:
|
def get_allowed_llm_factories() -> list:
|
||||||
factories = LLMFactoriesService.get_all()
|
factories = list(LLMFactoriesService.get_all())
|
||||||
if settings.ALLOWED_LLM_FACTORIES is None:
|
if settings.ALLOWED_LLM_FACTORIES is None:
|
||||||
return list(factories)
|
return factories
|
||||||
|
|
||||||
return [factory for factory in factories if factory.name in settings.ALLOWED_LLM_FACTORIES]
|
return [factory for factory in factories if factory.name in settings.ALLOWED_LLM_FACTORIES]
|
||||||
|
|||||||
Reference in New Issue
Block a user