Skip to content

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

Fix: Can't add more models (#11076)

Billy Bao5a8fbc5a81b7
diff --git a/api/apps/llm_app.py b/api/apps/llm_app.py
index 3d9be95f7f..97bc487d76 100644
--- a/api/apps/llm_app.py
+++ b/api/apps/llm_app.py
@@ -128,7 +128,7 @@ def add_llm():
api_key = req.get("api_key", "x")
llm_name = req.get("llm_name")
- if factory not in get_allowed_llm_factories():
+ if factory not in [f.name for f in get_allowed_llm_factories()]:
return get_data_error_result(message=f"LLM factory {factory} is not allowed")
def apikey_json(keys):