One liner to get around llama max length bug
This commit is contained in:
parent
4518df8312
commit
4b5d5f3b63
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user