Fix GPU Cache
This commit is contained in:
parent
099dbf908b
commit
7102bf32f0
@ -52,3 +52,5 @@ REPEAT_PENALTY=1
|
||||
GPU=1
|
||||
|
||||
N_GPU_LAYERS=32
|
||||
|
||||
PYTHONUNBUFFERED=1
|
||||
|
10
llamabot.js
10
llamabot.js
@ -347,6 +347,7 @@ async function generateResponse(conversation, message) {
|
||||
// if the message object doesn't exist, create it
|
||||
if (!botMessage) {
|
||||
(async () => {
|
||||
//if (time == 0) return
|
||||
botMessage = await message.channel.send({ embeds: [embedData] });
|
||||
})();
|
||||
} else {
|
||||
@ -408,10 +409,17 @@ async function generateResponse(conversation, message) {
|
||||
// if the message object doesn't exist, create it
|
||||
if (!botMessage) {
|
||||
(async () => {
|
||||
//if (time == 0) return
|
||||
botMessage = await message.channel.send({ embeds: [embedData] });
|
||||
})();
|
||||
} else {
|
||||
botMessage.edit({ embeds: [embedData] }); // otherwise, update the message
|
||||
(async () => {
|
||||
if (!isAnyConversationBusy()) {
|
||||
botMessage.delete()
|
||||
} else {
|
||||
await botMessage.edit({ embeds: [embedData] }); // otherwise, update the message
|
||||
}
|
||||
})();
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user