完善模型测试与参考文件历史能力
This commit is contained in:
@@ -19,6 +19,8 @@ CREATE TABLE IF NOT EXISTS ai_models (
|
||||
api_format VARCHAR(20) DEFAULT 'openai' COMMENT 'anthropic/openai',
|
||||
api_endpoint VARCHAR(500) DEFAULT '' COMMENT 'API 地址',
|
||||
api_key_encrypted TEXT DEFAULT '' COMMENT '加密后的 API Key',
|
||||
supports_streaming TINYINT(1) DEFAULT 0 COMMENT '是否支持流式传输',
|
||||
enable_reasoning TINYINT(1) DEFAULT 0 COMMENT '是否开启思考模式',
|
||||
status VARCHAR(20) DEFAULT 'enabled' COMMENT 'enabled/disabled',
|
||||
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
||||
@@ -74,3 +76,12 @@ CREATE TABLE IF NOT EXISTS generation_logs (
|
||||
FOREIGN KEY (paragraph_id) REFERENCES paragraphs(id) ON DELETE CASCADE,
|
||||
FOREIGN KEY (model_id) REFERENCES ai_models(id) ON DELETE SET NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS reference_files (
|
||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||
file_name VARCHAR(255) DEFAULT '' COMMENT '原始文件名',
|
||||
file_path VARCHAR(500) DEFAULT '' COMMENT 'MinIO 对象路径',
|
||||
file_size INT DEFAULT 0 COMMENT '文件大小',
|
||||
content_type VARCHAR(120) DEFAULT '' COMMENT '文件类型',
|
||||
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
Reference in New Issue
Block a user