mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-02-27 08:44:24 +08:00
20 lines
488 B
Go
20 lines
488 B
Go
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"`
|
|
}
|