mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
fix issue
This commit is contained in:
parent
ddb2a0cfa1
commit
33cc03d910
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,8 @@ module.exports = {
|
|||
let description = [smallIconPill("generative_ai", args.text), '']
|
||||
let files = [];
|
||||
|
||||
if(!res.body.output) res.body.output = '[Empty Response]'
|
||||
|
||||
if(res.body.output.length <= 2000) description.push(res.body.output.substr(0, 2000 - args.text.length))
|
||||
else {
|
||||
files.push({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue