mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
improve ai notices
This commit is contained in:
parent
71763ac49b
commit
331bdc9da0
5 changed files with 10 additions and 11 deletions
|
@ -65,7 +65,7 @@ module.exports = {
|
|||
},
|
||||
description: description.join('\n'),
|
||||
footer: {
|
||||
text: `Bard • This information may be inaccurate or biased`
|
||||
text: `Bard • Generative AI is experimental. Response may be factually incorrect or biased.`
|
||||
}
|
||||
})],
|
||||
files
|
||||
|
@ -105,7 +105,7 @@ module.exports = {
|
|||
},
|
||||
description: description.join('\n'),
|
||||
footer: {
|
||||
text: `Bard • This information may be inaccurate or biased`
|
||||
text: `Bard • Generative AI is experimental. Response may be factually incorrect or biased.`
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -146,7 +146,7 @@ module.exports = {
|
|||
},
|
||||
description: description.join('\n'),
|
||||
footer: {
|
||||
text: `Bard • This information may be inaccurate or biased`
|
||||
text: `Bard • Generative AI is experimental. Response may be factually incorrect or biased.`
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ module.exports = {
|
|||
},
|
||||
description: description.join('\n'),
|
||||
footer: {
|
||||
text: `${MODELS[model.toLowerCase()].name} • This information may be inaccurate or biased`
|
||||
text: `${MODELS[model.toLowerCase()].name} • Generative AI is experimental. Response may be factually incorrect or biased.`
|
||||
}
|
||||
})],
|
||||
files
|
||||
|
|
|
@ -39,7 +39,7 @@ module.exports = {
|
|||
return editOrReply(context, createEmbed("default", context, {
|
||||
description: smallIconPill("generative_ai", args.text) + '\n' + codeblock("ansi", [res.body.output.substr(0, 2020 - args.text.length)]),
|
||||
footer: {
|
||||
text: `🗣🗣📢🔥🔥🔥🔥💯 • ${context.application.name}`,
|
||||
text: `Generative AI is experimental. • ${context.application.name}`,
|
||||
iconUrl: STATICS.openai
|
||||
}
|
||||
}))
|
||||
|
|
|
@ -88,7 +88,7 @@ module.exports = {
|
|||
},
|
||||
description: description.join('\n'),
|
||||
footer: {
|
||||
text: `PaLM 2 • This information may be inaccurate or biased`
|
||||
text: `PaLM 2 • Generative AI is experimental. Response may be factually incorrect or biased.`
|
||||
}
|
||||
})],
|
||||
files
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
const { createEmbed } = require('../../../labscore/utils/embed')
|
||||
const { editOrReply } = require('../../../labscore/utils/message')
|
||||
|
||||
const superagent = require('superagent')
|
||||
const { codeblock, iconPill, smallIconPill } = require('../../../labscore/utils/markdown')
|
||||
const { iconPill, smallIconPill } = require('../../../labscore/utils/markdown')
|
||||
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
const { canUseLimitedTestCommands } = require('../../../labscore/utils/testing')
|
||||
const { STATICS, STATIC_ICONS } = require('../../../labscore/utils/statics');
|
||||
const { STATIC_ICONS } = require('../../../labscore/utils/statics');
|
||||
const { summarizeWebpage } = require('../../../labscore/api/obelisk');
|
||||
|
||||
const URL_REGEX = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/
|
||||
const URL_REGEX = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([^> ]*)/
|
||||
|
||||
module.exports = {
|
||||
name: 'summarize',
|
||||
|
@ -45,7 +44,7 @@ module.exports = {
|
|||
return editOrReply(context, createEmbed("defaultNoFooter", context, {
|
||||
author: {
|
||||
iconUrl: STATIC_ICONS.ai_summary,
|
||||
name: res.response.body.title || '',
|
||||
name: res.response.body.title || 'Key points from the page',
|
||||
url: webUrl[0]
|
||||
},
|
||||
description: '- ' + res.response.body.summaries.join('\n- '),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue