From b15bcfbdf39e18c28afcf4a8f9c861e6e31f1474 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 4 Jul 2022 19:21:26 -0600 Subject: [PATCH] misc.generate: forgot to set POST --- src/modules/misc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/misc.js b/src/modules/misc.js index 5731181..822294d 100644 --- a/src/modules/misc.js +++ b/src/modules/misc.js @@ -406,11 +406,13 @@ generate.callback = async function (msg, line) { if (!line || line.length === 0) return "Arguments required."; let request = await fetch("https://backend.craiyon.com/generate", { + method: "POST", headers: GENERATE_HEADERS, body: JSON.stringify({prompt: line}), }); while (request.status !== 200) { request = await fetch("https://backend.craiyon.com/generate", { + method: "POST", headers: GENERATE_HEADERS, body: JSON.stringify({prompt: line}), });