mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-18 06:33:53 +08:00
feat: 记录任务的所有问答
This commit is contained in:
@@ -1776,6 +1776,17 @@
|
||||
"AdminStatusInactive"
|
||||
]
|
||||
},
|
||||
"consts.ChatRole": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"user",
|
||||
"assistant"
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
"ChatRoleUser",
|
||||
"ChatRoleAssistant"
|
||||
]
|
||||
},
|
||||
"consts.ModelStatus": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
@@ -1947,15 +1958,36 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"domain.ChatInfo": {
|
||||
"domain.ChatContent": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"content": {
|
||||
"description": "内容",
|
||||
"type": "string"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "integer"
|
||||
},
|
||||
"role": {
|
||||
"description": "角色,如user: 用户的提问 assistant: 机器人回复",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/consts.ChatRole"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"domain.ChatInfo": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"contents": {
|
||||
"description": "消息内容",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/domain.ChatContent"
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user