feat: add domestic model provider presets
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
BEGIN;
|
||||
|
||||
UPDATE content_model_config
|
||||
SET provider = 'openai_compatible'
|
||||
WHERE provider NOT IN ('ark', 'openai_compatible');
|
||||
|
||||
ALTER TABLE content_model_config
|
||||
DROP CONSTRAINT content_model_config_provider_check;
|
||||
|
||||
ALTER TABLE content_model_config
|
||||
ADD CONSTRAINT content_model_config_provider_check
|
||||
CHECK (provider IN ('ark', 'openai_compatible'));
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user