Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: get_allowed_llm_factories() return type (#11031)

Billy Bao24335485bfb1
diff --git a/api/utils/api_utils.py b/api/utils/api_utils.py
index 8980524477..fb1d06f5bb 100644
--- a/api/utils/api_utils.py
+++ b/api/utils/api_utils.py
@@ -626,8 +626,8 @@ async def is_strong_enough(chat_model, embedding_model):
def get_allowed_llm_factories() -> list:
- factories = LLMFactoriesService.get_all()
+ factories = list(LLMFactoriesService.get_all())
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]