Skip to content

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

Fix: Hunyuan model adding error. (#6531)

Kevin Hu163e71d06f0e
diff --git a/api/apps/llm_app.py b/api/apps/llm_app.py
index d67692b529..771418e424 100644
--- a/api/apps/llm_app.py
+++ b/api/apps/llm_app.py
@@ -139,7 +139,7 @@ def add_llm():
req = request.json
factory = req["llm_factory"]
api_key = req.get("api_key", "x")
- llm_name = req["llm_name"]
+ llm_name = req.get("llm_name")
def apikey_json(keys):
nonlocal req