RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
BugFix: Fixed api_key generation error for VolcEngine (#2502)
yungongzi4f962d6bffe0
diff --git a/api/apps/llm_app.py b/api/apps/llm_app.pyindex 19fbbece27..d7a852b0bb 100644--- a/api/apps/llm_app.py+++ b/api/apps/llm_app.py@@ -130,8 +130,7 @@ def add_llm():# For VolcEngine, due to its special authentication method# Assemble ark_api_key endpoint_id into api_keyllm_name = req["llm_name"]- api_key = '{' + f'"ark_api_key": "{req.get("ark_api_key", "")}", ' \- f'"ep_id": "{req.get("endpoint_id", "")}" ' + '}'+ api_key = f'{{ "ark_api_key":"{req.get("ark_api_key", "")}", "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", "")}"' + '}'