mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
updates palm2 wording to match branding
This commit is contained in:
parent
fb2d4dbb37
commit
f0af222fa5
2 changed files with 5 additions and 4 deletions
|
@ -78,6 +78,7 @@ module.exports = {
|
|||
})
|
||||
}catch(e){
|
||||
if(e.response.body?.message) return editOrReply(context, {embeds:[createEmbed("warning", context, e.response.body.message)]})
|
||||
|
||||
console.log(e)
|
||||
return editOrReply(context, {embeds:[createEmbed("error", context, `Unable to generate text.`)]})
|
||||
}
|
||||
|
|
|
@ -14,8 +14,8 @@ module.exports = {
|
|||
label: 'text',
|
||||
aliases: ['palm2'],
|
||||
metadata: {
|
||||
description: `${iconPill("generative_ai", "LIMITED TESTING")}\n\nTalk to Bard.`,
|
||||
description_short: 'Chat with Palm2.',
|
||||
description: `${iconPill("generative_ai", "LIMITED TESTING")}\n\nTalk to PaLM 2.`,
|
||||
description_short: 'Chat with PaLM 2.',
|
||||
examples: ['bard How many otter species are there?'],
|
||||
category: 'limited',
|
||||
usage: 'palm <input> [-prompt <prompt override>]'
|
||||
|
@ -73,7 +73,7 @@ module.exports = {
|
|||
let description = []
|
||||
let files = [];
|
||||
|
||||
if(!res.body.output) return editOrReply(context, {embeds:[createEmbed("error", context, `Bard returned an error. Try again later.`)]})
|
||||
if(!res.body.output) return editOrReply(context, {embeds:[createEmbed("error", context, `PaLM 2 returned an error. Try again later.`)]})
|
||||
|
||||
if(res.body.output.length <= 4000) description.push(res.body.output)
|
||||
else {
|
||||
|
@ -91,7 +91,7 @@ module.exports = {
|
|||
},
|
||||
description: description.join('\n'),
|
||||
footer: {
|
||||
text: `Palm2 • This information may be inaccurate or biased`
|
||||
text: `PaLM 2 • This information may be inaccurate or biased`
|
||||
}
|
||||
})],
|
||||
files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue