mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
limit length of the displayed prompt
This commit is contained in:
parent
9feeed3b6e
commit
83c0e6944b
1 changed files with 5 additions and 1 deletions
|
@ -58,6 +58,7 @@ module.exports = {
|
||||||
temperatureDisplay = " " + smallIconPill("example", temperature)
|
temperatureDisplay = " " + smallIconPill("example", temperature)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
try{
|
try{
|
||||||
await editOrReply(context, createEmbed("ai", context, "Generating response..."))
|
await editOrReply(context, createEmbed("ai", context, "Generating response..."))
|
||||||
|
|
||||||
|
@ -72,7 +73,10 @@ module.exports = {
|
||||||
model
|
model
|
||||||
})
|
})
|
||||||
|
|
||||||
let description = [smallIconPill("generative_ai", args.text) + modelDisplay + temperatureDisplay, '']
|
let inputDisplay = args.text
|
||||||
|
if(inputDisplay.length >= 50) inputDisplay = inputDisplay.substr(0,50) + '...'
|
||||||
|
|
||||||
|
let description = [smallIconPill("generative_ai", inputDisplay) + modelDisplay + temperatureDisplay, '']
|
||||||
let files = [];
|
let files = [];
|
||||||
|
|
||||||
if(!res.body.output) res.body.output = '[Empty Response]'
|
if(!res.body.output) res.body.output = '[Empty Response]'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue