fix: conversationId field error

This commit is contained in:
ikechan8370 2023-02-12 18:23:15 +08:00
parent fb73f1b5df
commit 9aa0a314bc

View file

@ -367,7 +367,7 @@ export class chatgpt extends plugin {
let response = await tryTimes(async () => await this.chatGPTApi.sendMessage(prompt, conversation || {}), 5)
return {
text: response.response,
conversationId: response.response,
conversationId: response.conversationId,
id: response.messageId,
parentMessageId: conversation?.parentMessageId
}
@ -398,7 +398,6 @@ export class chatgpt extends plugin {
}
}
async emptyQueue (e) {
await redis.lTrim('CHATGPT:CHAT_QUEUE', 1, 0)
await this.reply('已清空当前等待队列')