更新
This commit is contained in:
1 parent
b6b528490c
commit
4ab63e77ed
28 files changed
+1858
-695
No files matched your search
@@ -4,11 +4,11 @@ import "time"
|
||||
|
||||
// BackendAiChatMessage AI聊天消息表
|
||||
type BackendAiChatMessage struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
TenantID string `orm:"column(tenant_id);size(64)" json:"tenant_id"`
|
||||
SessionID uint64 `orm:"column(session_id)" json:"session_id"`
|
||||
Role string `orm:"column(role);size(20)" json:"role"` // user / assistant
|
||||
Content string `orm:"column(content);type(text)" json:"content"`
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
TenantID string `orm:"column(tenant_id);size(64)" json:"tenant_id"`
|
||||
SessionID uint64 `orm:"column(session_id)" json:"session_id"`
|
||||
Role string `orm:"column(role);size(20)" json:"role"` // user / assistant
|
||||
Content string `orm:"column(content);type(text)" json:"content"`
|
||||
// Images 用户上传的图片(base64 dataURL 的 JSON 数组),仅 user 消息使用
|
||||
Images string `orm:"column(images);type(text)" json:"images"`
|
||||
// Tokens 本次响应消耗的 token 总数(0 表示未统计到)
|
||||
|
||||
Reference in new issue
Block a user