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