resetting botMessage to stop crashing

This commit is contained in:
Raven Scott 2023-05-22 17:46:59 +02:00
parent 393999165b
commit da0650d3b6

View File

@ -443,13 +443,14 @@ async function generateResponse(conversation, message) {
clearInterval(refreshInterval); clearInterval(refreshInterval);
console.log(responseText); console.log(responseText);
botMessage.delete() botMessage.delete()
botMessage = null;
return responseText; return responseText;
} catch (err) { } catch (err) {
throw err; throw err;
} finally { } finally {
clearTimeout(timeout); clearTimeout(timeout);
botMessage = null;
time = 0 time = 0
} }
} }