show input image in command output

This commit is contained in:
derpystuff 2023-12-13 22:13:38 +01:00
parent 2837571614
commit b4bc83bf96

View file

@ -44,8 +44,6 @@ module.exports = {
if(res.response.body.message) return editOrReply(context, createEmbed("error", context, e.response.body.message))
console.log(res.response.body)
let output = res.response.body.gemini?.candidates[0]?.content?.parts[0]?.text
if(!output) return editOrReply(context, createEmbed("error", context, `PaLM 2 returned an error. Try again later.`))
@ -64,6 +62,9 @@ module.exports = {
name: stringwrap(input, 50, false),
iconUrl: STATIC_ICONS.ai_gemini
},
thumbnail: {
url: image
},
description: description.join('\n'),
footer: {
text: `Generative AI is experimental • Data submitted to Gemini may be used by Google for training.`