Skip to content

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

Fix: empty api-key causes problems. (#6022)

Kevin Hu471bd92b4c1a
diff --git a/api/apps/llm_app.py b/api/apps/llm_app.py
index f59cf2f5ad..07232e7a66 100644
--- a/api/apps/llm_app.py
+++ b/api/apps/llm_app.py
@@ -135,7 +135,7 @@ def set_api_key():
def add_llm():
req = request.json
factory = req["llm_factory"]
- api_key = req.get("api_key", "")
+ api_key = req.get("api_key", "x")
llm_name = req["llm_name"]
def apikey_json(keys):