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;