From f88eb792eed4894e6a8f5f87917ccbbf5bac311c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E8=83=A4=E6=B1=A0?= Date: Sun, 11 Dec 2022 17:24:50 +0800 Subject: [PATCH] fix: add end token --- apps/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/chat.js b/apps/chat.js index fef2b66..4779acf 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -240,7 +240,7 @@ export class chatgpt extends plugin { } } if (userSetting.usePicture) { - let endTokens = ['.', '。', '……', '!', '!', ']', ')', ')', '】', '?', '?', '~'] + let endTokens = ['.', '。', '……', '!', '!', ']', ')', ')', '】', '?', '?', '~', '"', "'"] while (!endTokens.find(token => response.trimEnd().endsWith(token))) { // while (!response.trimEnd().endsWith('.') && !response.trimEnd().endsWith('。') && !response.trimEnd().endsWith('……') && // !response.trimEnd().endsWith('!') && !response.trimEnd().endsWith('!') && !response.trimEnd().endsWith(']') && !response.trimEnd().endsWith('】')