From ba47c13eb5deb1521267d57231d14e3946fbff75 Mon Sep 17 00:00:00 2001 From: Wang Qi Date: Thu, 23 Apr 2026 17:16:32 +0800 Subject: [PATCH] Fix commit override from #14298 of api-key to api_key (#14328) ### What problem does this PR solve? Fix commit override from https://github.com/infiniflow/ragflow/pull/14298/ of `api-key` to `api_key` ### Type of change - [x] Refactoring --- .../test_connector_app/test_connector_oauth_contract.py | 2 +- web/src/utils/api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testcases/test_web_api/test_connector_app/test_connector_oauth_contract.py b/test/testcases/test_web_api/test_connector_app/test_connector_oauth_contract.py index dc3279ca8c..a2d647ebdb 100644 --- a/test/testcases/test_web_api/test_connector_app/test_connector_oauth_contract.py +++ b/test/testcases/test_web_api/test_connector_app/test_connector_oauth_contract.py @@ -22,7 +22,7 @@ from configs import HOST_ADDRESS, VERSION CONNECTOR_BASE_URL = f"{HOST_ADDRESS}/api/{VERSION}/connectors" LLM_API_KEY_URL = f"{HOST_ADDRESS}/{VERSION}/llm/set_api_key" -LANGFUSE_API_KEY_URL = f"{HOST_ADDRESS}/{VERSION}/langfuse/api_key" +LANGFUSE_API_KEY_URL = f"{HOST_ADDRESS}/api/{VERSION}/langfuse/api-key" pytestmark = pytest.mark.p3 diff --git a/web/src/utils/api.ts b/web/src/utils/api.ts index 37000decda..90be093769 100644 --- a/web/src/utils/api.ts +++ b/web/src/utils/api.ts @@ -174,7 +174,7 @@ export default { createSystemToken: `${restAPIv1}/system/tokens`, removeSystemToken: `${restAPIv1}/system/tokens`, getSystemConfig: `${restAPIv1}/system/config`, - setLangfuseConfig: `${restAPIv1}/langfuse/api_key`, + setLangfuseConfig: `${restAPIv1}/langfuse/api-key`, // flow listTemplates: `${webAPI}/canvas/templates`,