mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 07:03:08 -04:00
show input image in command output
This commit is contained in:
parent
2837571614
commit
b4bc83bf96
1 changed files with 3 additions and 2 deletions
|
@ -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.`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue