From 0365a3a09fdece3b20e25f5cba8c8692bc46ccbf Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Wed, 22 Feb 2023 12:09:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=96=E6=B6=88=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E7=9A=84=E5=BE=AA=E7=8E=AFContinue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat.js | 77 +++++++++++----------------------------------------- 1 file changed, 16 insertions(+), 61 deletions(-) diff --git a/apps/chat.js b/apps/chat.js index a057e57..4372223 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -6,7 +6,7 @@ import { v4 as uuid } from 'uuid' import delay from 'delay' import { ChatGPTAPI } from 'chatgpt' import { ChatGPTClient, BingAIClient } from '@waylaidwanderer/chatgpt-api' -import {escapeHtml, getMessageById, makeForwardMsg, tryTimes, upsertMessage} from '../utils/common.js' +import { escapeHtml, getMessageById, makeForwardMsg, tryTimes, upsertMessage } from '../utils/common.js' import { ChatGPTPuppeteer } from '../utils/browser.js' import { KeyvFile } from 'keyv-file' import { OfficialChatGPTClient } from '../utils/message.js' @@ -275,12 +275,12 @@ export class chatgpt extends plugin { } } -// if (prompt.indexOf('