update
This commit is contained in:
parent
bc6157e4a1
commit
099dbf908b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user