|
@@ -317,12 +317,12 @@ func (this *AiFileController) FileRetrieve() {
|
|
|
if v.OpenaiFileId != "" {
|
|
|
tmpFileIdList = append(tmpFileIdList, v.OpenaiFileId)
|
|
|
} else {
|
|
|
- tmpFileIdList = []string{}
|
|
|
historyFr := new(aimod.HistoryChat)
|
|
|
historyFr.Ask = v.Ask
|
|
|
historyFr.Answer = v.Answer
|
|
|
historyFr.OpenaiFileId = tmpFileIdList
|
|
|
frList = append(frList, *historyFr)
|
|
|
+ tmpFileIdList = []string{}
|
|
|
}
|
|
|
}
|
|
|
// 当前的消息
|