mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-18 10:38:42 +00:00
fix:api /factories wrong return (#11015)
### What problem does this PR solve? change: api /factories wrong return ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
96c015fb85
commit
89410d2381
@ -628,6 +628,6 @@ 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 = LLMFactoriesService.get_all()
|
||||||
if settings.ALLOWED_LLM_FACTORIES is None:
|
if settings.ALLOWED_LLM_FACTORIES is None:
|
||||||
return factories
|
return list(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]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user