Skip to content

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

fix: rename ark_api_key to api_key for volcengine provider config (#15896)

chanx682230743637
diff --git a/web/src/pages/user-setting/setting-model/modal/provider-modal/field-config/provider-config-map.ts b/web/src/pages/user-setting/setting-model/modal/provider-modal/field-config/provider-config-map.ts
index 5c51a82cc3..24c8372fd9 100644
--- a/web/src/pages/user-setting/setting-model/modal/provider-modal/field-config/provider-config-map.ts
+++ b/web/src/pages/user-setting/setting-model/modal/provider-modal/field-config/provider-config-map.ts
@@ -167,17 +167,15 @@ export const ProviderConfigMap: Record<string, ProviderConfig> = {
},
],
verifyTransform: (values) => ({
- apiKey: {
- ark_api_key: values.api_key,
- endpoint_id: values.endpoint_id,
- },
+ apiKey: values.api_key,
+ endpoint_id: values.endpoint_id,
modelInfo: buildModelInfoFromValues(values),
}),
submitTransform: (values) => ({
instance_name: values.instance_name,
llm_factory: LLMFactory.VolcEngine,
endpoint_id: values.endpoint_id,
- ark_api_key: values.api_key,
+ api_key: values.api_key,
model_info: buildModelInfoFromValues(values),
}),
},