mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
display model changes
This commit is contained in:
parent
32bf8bf119
commit
ebfa62cd2a
1 changed files with 7 additions and 3 deletions
|
@ -5,7 +5,7 @@ const { canUseLimitedTestCommands, isLimitedTestUser } = require('../../../labsc
|
|||
const { STATICS } = require('../../../labscore/utils/statics');
|
||||
|
||||
const superagent = require('superagent')
|
||||
const { iconPill, smallIconPill } = require('../../../labscore/utils/markdown')
|
||||
const { iconPill, smallIconPill, icon } = require('../../../labscore/utils/markdown')
|
||||
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
|
||||
|
@ -33,7 +33,11 @@ module.exports = {
|
|||
if(args.prompt !== "") prompt = args.prompt
|
||||
|
||||
let model = "CHATGPT"
|
||||
if(args.model && isLimitedTestUser(context.user)) model = args.model
|
||||
let modelDisplay = ""
|
||||
if(args.model && isLimitedTestUser(context.user)){
|
||||
model = args.model
|
||||
modelDisplay = " " + smallIconPill("robot", model)
|
||||
}
|
||||
|
||||
try{
|
||||
await editOrReply(context, createEmbed("ai", context, "Generating response..."))
|
||||
|
@ -49,7 +53,7 @@ module.exports = {
|
|||
model: model
|
||||
})
|
||||
|
||||
let description = [smallIconPill("generative_ai", args.text), '']
|
||||
let description = [smallIconPill("generative_ai", args.text) + modelDisplay, '']
|
||||
let files = [];
|
||||
|
||||
if(!res.body.output) res.body.output = '[Empty Response]'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue