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

### What problem does this PR solve?

fix: rename ark_api_key to api_key for volcengine provider config

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2026-06-10 14:56:38 +08:00
committed by GitHub
parent f632bb4a85
commit 6822307436

View File

@@ -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),
}),
},