增加ai配置和ai广场功能
This commit is contained in:
1 parent
244b4bd9fd
commit
d9a50e23dd
27 files changed
+3808
-57
No files matched your search
@@ -0,0 +1,20 @@
|
||||
-- 平台级 AI 服务商配置(platform「AI管理」页签:DeepSeek / 豆包 / Codex 等接入)
|
||||
-- 人工执行;表数据驱动,前端按 provider_type 区分不同服务商 tab
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `yz_platform_ai_provider` (
|
||||
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
||||
`provider_type` varchar(30) NOT NULL DEFAULT '' COMMENT 'deepseek/doubao/codex/custom',
|
||||
`name` varchar(100) NOT NULL DEFAULT '' COMMENT '配置名称',
|
||||
`api_base` varchar(255) NOT NULL DEFAULT '' COMMENT 'OpenAI兼容接口基址,如 https://api.deepseek.com',
|
||||
`api_key` varchar(500) NOT NULL DEFAULT '' COMMENT 'API Key(不回传前端)',
|
||||
`models` text COMMENT '可用模型 JSON 数组,如 ["deepseek-chat"]',
|
||||
`default_model` varchar(255) NOT NULL DEFAULT '' COMMENT '默认模型',
|
||||
`is_default` tinyint NOT NULL DEFAULT 0 COMMENT '是否平台默认(Playground/OCR优先使用)',
|
||||
`status` tinyint NOT NULL DEFAULT 1 COMMENT '0-禁用 1-启用',
|
||||
`remark` varchar(255) NOT NULL DEFAULT '',
|
||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`delete_time` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_type_status` (`provider_type`, `status`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='平台AI服务商配置';
|
||||
Reference in new issue
Block a user