feat(api): migrate volces client to gateway

This commit is contained in:
2026-05-10 23:14:10 +08:00
parent d59756a27c
commit 0fc23d7eb8
5 changed files with 830 additions and 1 deletions
@@ -0,0 +1,19 @@
UPDATE model_catalog_providers
SET default_auth_type = 'APIKey',
metadata = metadata || jsonb_build_object(
'defaultConnectionSource', 'server-main.integration-platform',
'defaultAuthTypeSynced', 'APIKey'
),
updated_at = now()
WHERE provider_key = 'volces'
OR provider_code = 'volces';
UPDATE integration_platforms
SET auth_type = 'APIKey',
credentials = CASE
WHEN credentials ? 'apiKey' THEN credentials
ELSE credentials || '{"apiKey": ""}'::jsonb
END,
updated_at = now()
WHERE provider = 'volces'
AND auth_type = 'AccessKey-SecretKey';