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

View File

@ -53,6 +53,8 @@ module.exports = {
console.log(`Prompt: ${prompt.replace("+", " ")}\nResponse: ${response.data.answer}`); 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); interaction.editReply(response.data.answer);
} catch (err) { } catch (err) {
console.error(err); console.error(err);