This commit is contained in:
Raven Scott 2023-05-22 18:38:47 +02:00
parent bc6157e4a1
commit 099dbf908b
1 changed files with 1 additions and 1 deletions

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;