resetting botMessage to stop crashing

This commit is contained in:
Raven Scott 2023-05-22 17:46:59 +02:00
parent 393999165b
commit da0650d3b6
1 changed files with 2 additions and 1 deletions

View File

@ -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
}
}