mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-08 02:03:42 +08:00
feat: 支持文心4.0模型,不同的用户可以订阅不同的AI模型
This commit is contained in:
6
database/update-v3.1.7.sql
Normal file
6
database/update-v3.1.7.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- 增加字段保存用户开通的 AI 模型
|
||||
ALTER TABLE `chatgpt_users` ADD `chat_models_json` TEXT NOT NULL COMMENT 'AI模型 json' AFTER `chat_roles_json`;
|
||||
|
||||
-- 为每个模型设置对话权重
|
||||
ALTER TABLE `chatgpt_chat_models` ADD `weight` TINYINT(3) NOT NULL COMMENT '对话权重,每次对话扣减多少次对话额度' AFTER `enabled`;
|
||||
UPDATE `chatgpt_chat_models` SET weight = 1;
|
||||
Reference in New Issue
Block a user