mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-02-19 12:54:28 +08:00
SSE 消息重构已完成
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
package vo
|
||||
|
||||
type HistoryMessage struct {
|
||||
BaseVo
|
||||
ChatId string `json:"chat_id"`
|
||||
UserId uint `json:"user_id"`
|
||||
RoleId uint `json:"role_id"`
|
||||
Model string `json:"model"`
|
||||
Type string `json:"type"`
|
||||
Icon string `json:"icon"`
|
||||
Tokens int `json:"tokens"`
|
||||
Content string `json:"content"`
|
||||
UseContext bool `json:"use_context"`
|
||||
}
|
||||
19
api/store/vo/chat_message.go
Normal file
19
api/store/vo/chat_message.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package vo
|
||||
|
||||
type MsgContent struct {
|
||||
Text string `json:"text"`
|
||||
Files []File `json:"files"`
|
||||
}
|
||||
|
||||
type ChatMessage struct {
|
||||
BaseVo
|
||||
ChatId string `json:"chat_id"`
|
||||
UserId uint `json:"user_id"`
|
||||
RoleId uint `json:"role_id"`
|
||||
Model string `json:"model"`
|
||||
Type string `json:"type"`
|
||||
Icon string `json:"icon"`
|
||||
Tokens int `json:"tokens"`
|
||||
Content MsgContent `json:"content"`
|
||||
UseContext bool `json:"use_context"`
|
||||
}
|
||||
Reference in New Issue
Block a user