One liner to get around llama max length bug

This commit is contained in:
GooeyTuxedo 2023-04-07 14:28:34 -07:00
parent 4518df8312
commit 4b5d5f3b63
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ module.exports = {
console.log(`Prompt: ${prompt.replace("+", " ")}\nResponse: ${response.data.answer}`);
if (!response.data.answer) throw new Error("Did not receive a reply. API error?")
interaction.editReply(response.data.answer);
} catch (err) {
console.error(err);