Skip to content

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

fix(Add model api): Add VolcEngine to create api_key format error (#2490)

_Chenbingaf0b4b082871
diff --git a/api/apps/llm_app.py b/api/apps/llm_app.py
index 544024992d..69bf7f220d 100644
--- a/api/apps/llm_app.py
+++ b/api/apps/llm_app.py
@@ -128,7 +128,7 @@ def add_llm():
# Assemble ark_api_key endpoint_id into api_key
llm_name = req["llm_name"]
api_key = '{' + f'"ark_api_key": "{req.get("ark_api_key", "")}", ' \
- f'"ep_id": "{req.get("endpoint_id", "")}", ' + '}'
+ f'"ep_id": "{req.get("endpoint_id", "")}" ' + '}'
elif factory == "Tencent Hunyuan":
api_key = '{' + f'"hunyuan_sid": "{req.get("hunyuan_sid", "")}", ' \
f'"hunyuan_sk": "{req.get("hunyuan_sk", "")}"' + '}'