mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-05-06 09:44:34 +08:00
聊天记录模型名称改成 255
This commit is contained in:
@@ -1,9 +1,12 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
## v4.2.4
|
## v4.2.4
|
||||||
|
|
||||||
- 功能新增:管理后台支持设置默认昵称
|
- 功能新增:管理后台支持设置默认昵称
|
||||||
- 功能优化:支持 Suno v4.5 模型支持
|
- 功能优化:支持 Suno v4.5 模型支持
|
||||||
- 功能新增:用户注册和用户登录增加用户协议和隐私政策功能,需要用户同意协议才可注册和登录。
|
- 功能新增:用户注册和用户登录增加用户协议和隐私政策功能,需要用户同意协议才可注册和登录。
|
||||||
- 功能优化:修改重新回答功能,撤回千面的问答内容为可编辑内容,撤回的内容不会增加额外的上下文
|
- 功能优化:修改重新回答功能,撤回千面的问答内容为可编辑内容,撤回的内容不会增加额外的上下文
|
||||||
|
- 功能优化:优化聊天记录的存储结构,增加模型名称字段,支持存储更长的模型名称
|
||||||
|
|
||||||
## v4.2.3
|
## v4.2.3
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ type ChatMessage struct {
|
|||||||
Type string `gorm:"column:type;type:varchar(10);not null;comment:类型:prompt|reply" json:"type"`
|
Type string `gorm:"column:type;type:varchar(10);not null;comment:类型:prompt|reply" json:"type"`
|
||||||
Icon string `gorm:"column:icon;type:varchar(255);not null;comment:角色图标" json:"icon"`
|
Icon string `gorm:"column:icon;type:varchar(255);not null;comment:角色图标" json:"icon"`
|
||||||
RoleId uint `gorm:"column:role_id;type:int;not null;comment:角色 ID" json:"role_id"`
|
RoleId uint `gorm:"column:role_id;type:int;not null;comment:角色 ID" json:"role_id"`
|
||||||
Model string `gorm:"column:model;type:varchar(30);comment:模型名称" json:"model"`
|
Model string `gorm:"column:model;type:varchar(255);comment:模型名称" json:"model"`
|
||||||
Content string `gorm:"column:content;type:text;not null;comment:聊天内容" json:"content"`
|
Content string `gorm:"column:content;type:text;not null;comment:聊天内容" json:"content"`
|
||||||
Tokens int `gorm:"column:tokens;type:smallint;not null;comment:耗费 token 数量" json:"tokens"`
|
Tokens int `gorm:"column:tokens;type:smallint;not null;comment:耗费 token 数量" json:"tokens"`
|
||||||
TotalTokens int `gorm:"column:total_tokens;type:int;not null;comment:消耗总Token长度" json:"total_tokens"`
|
TotalTokens int `gorm:"column:total_tokens;type:int;not null;comment:消耗总Token长度" json:"total_tokens"`
|
||||||
|
|||||||
Reference in New Issue
Block a user