From da0650d3b69093389aba53a0c80818e9019286e0 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Mon, 22 May 2023 17:46:59 +0200 Subject: [PATCH] resetting botMessage to stop crashing --- llamabot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llamabot.js b/llamabot.js index 167c471..24aa06e 100644 --- a/llamabot.js +++ b/llamabot.js @@ -443,13 +443,14 @@ async function generateResponse(conversation, message) { clearInterval(refreshInterval); console.log(responseText); botMessage.delete() - + botMessage = null; return responseText; } catch (err) { throw err; } finally { clearTimeout(timeout); + botMessage = null; time = 0 } }