From 099dbf908b9d4e3a904fbe3487a385700fedb0aa Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Mon, 22 May 2023 18:38:47 +0200 Subject: [PATCH] update --- llamabot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llamabot.js b/llamabot.js index 2e07588..4766a2b 100644 --- a/llamabot.js +++ b/llamabot.js @@ -449,9 +449,9 @@ async function generateResponse(conversation, message) { const responseText = choice.message.content; // clear the interval, replace the "please wait" message with the response, and update the message - clearInterval(refreshInterval); console.log(responseText); await botMessage.delete() + clearInterval(refreshInterval); botMessage = null; return responseText;