This commit is contained in:
Raven Scott 2023-05-22 18:38:47 +02:00
parent bc6157e4a1
commit 099dbf908b

View File

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