misc.generate: oceanic fixess
This commit is contained in:
parent
1901fe1a52
commit
a983e59c4d
1 changed files with 2 additions and 2 deletions
|
@ -489,7 +489,7 @@ generate.callback = async function (msg, line) {
|
||||||
const data = await request.json();
|
const data = await request.json();
|
||||||
const images = data.images
|
const images = data.images
|
||||||
.map((img) => Buffer.from(img, "base64"))
|
.map((img) => Buffer.from(img, "base64"))
|
||||||
.map((img, index) => ({file: img, name: `${index}.jpg`}));
|
.map((img, index) => ({contents: img, name: `${index}.jpg`}));
|
||||||
|
|
||||||
const title = `Responses for "${safeString(line)}"`;
|
const title = `Responses for "${safeString(line)}"`;
|
||||||
|
|
||||||
|
@ -498,7 +498,7 @@ generate.callback = async function (msg, line) {
|
||||||
retries > 0 ? " with " + retries + " retries" : ""
|
retries > 0 ? " with " + retries + " retries" : ""
|
||||||
}`,
|
}`,
|
||||||
embeds: [],
|
embeds: [],
|
||||||
file: images,
|
images,
|
||||||
};
|
};
|
||||||
|
|
||||||
let splitIndex = 0;
|
let splitIndex = 0;
|
||||||
|
|
Loading…
Reference in a new issue