mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 07:03:08 -04:00
limit displayed dalle prompt length
This commit is contained in:
parent
99cca89522
commit
43eba5a06c
1 changed files with 4 additions and 1 deletions
|
@ -44,7 +44,10 @@ module.exports = {
|
|||
// Fetch the image
|
||||
let img = await superagent.get(res.body.output)
|
||||
|
||||
let description = [smallIconPill("generative_ai", args.text), '']
|
||||
let inputDisplay = args.text
|
||||
if(inputDisplay.length >= 50) inputDisplay = inputDisplay.substr(0,50) + '...'
|
||||
|
||||
let description = [smallIconPill("generative_ai", inputDisplay), '']
|
||||
let files = [];
|
||||
|
||||
if(!res.body.output) res.body.output = '[Empty Response]'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue