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; const responseText = choice.message.content;
// clear the interval, replace the "please wait" message with the response, and update the message // clear the interval, replace the "please wait" message with the response, and update the message
clearInterval(refreshInterval);
console.log(responseText); console.log(responseText);
await botMessage.delete() await botMessage.delete()
clearInterval(refreshInterval);
botMessage = null; botMessage = null;
return responseText; return responseText;