Skip to content

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

fix:api /factories wrong return (#11015)

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