From 9aa0a314bc753491301c77117268c5ae720c3d52 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sun, 12 Feb 2023 18:23:15 +0800 Subject: [PATCH] fix: conversationId field error --- apps/chat.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/chat.js b/apps/chat.js index eb351a8..5e0f90d 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -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('已清空当前等待队列')