From a1b450abaa04b4490beb8859b29cd048d8c167c1 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sat, 15 Jul 2023 14:24:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=99=BA=E8=83=BD=E6=A8=A1=E5=BC=8Ffunc?= =?UTF-8?q?tion=E5=8F=A0=E5=8A=A0=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/chat.js b/apps/chat.js index 55ae63f..92af247 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -1875,7 +1875,7 @@ export class chatgpt extends plugin { } this.chatGPTApi = new ChatGPTAPI(opts) let option = { - timeoutMs: 120000, + timeoutMs: 600000, completionParams, stream: true, onProgress: (data) => { @@ -2034,6 +2034,9 @@ export class chatgpt extends plugin { msg = await this.chatGPTApi.sendMessage(prompt, option) logger.info(msg) while (msg.functionCall) { + if (msg.text) { + await e.reply(msg.text) + } let { name, arguments: args } = msg.functionCall args = JSON.parse(args) // 感觉换成targetGroupIdOrUserQQNumber这种表意比较清楚的变量名,效果会好一丢丢