From c1fd16b6902c4165f37fd10de497e6f5fe9ece8f Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sun, 2 Apr 2023 11:30:44 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- legacy/src/chatgpt-api.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/legacy/src/chatgpt-api.ts b/legacy/src/chatgpt-api.ts index 31181ded..9d2d4830 100644 --- a/legacy/src/chatgpt-api.ts +++ b/legacy/src/chatgpt-api.ts @@ -314,7 +314,10 @@ export class ChatGPTAPI { } } - return Promise.all([ this._upsertMessage(latestQuestion), this._upsertMessage(message) ]).then(() => message) + return Promise.all([ + this._upsertMessage(latestQuestion), + this._upsertMessage(message) + ]).then(() => message) }) if (timeoutMs) {