mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-17 10:27:05 -04:00
fix palm
This commit is contained in:
parent
5c5aba0c48
commit
cd5e9ceb4a
6 changed files with 10 additions and 28 deletions
|
@ -5,7 +5,7 @@ const { canUseLimitedTestCommands } = require('../../../labscore/utils/testing')
|
|||
const { STATICS } = require('../../../labscore/utils/statics');
|
||||
|
||||
const superagent = require('superagent')
|
||||
const { iconPill, smallIconPill } = require('../../../labscore/utils/markdown')
|
||||
const { iconPill, smallIconPill, stringwrap } = require('../../../labscore/utils/markdown')
|
||||
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
|
||||
|
@ -41,10 +41,7 @@ module.exports = {
|
|||
// Fetch the image
|
||||
let img = await superagent.get(res.body.output)
|
||||
|
||||
let inputDisplay = args.text
|
||||
if(inputDisplay.length >= 50) inputDisplay = inputDisplay.substr(0,50) + '...'
|
||||
|
||||
let description = [smallIconPill("generative_ai", inputDisplay), '']
|
||||
let description = [smallIconPill("generative_ai", stringwrap(args.text, 50)), '']
|
||||
let files = [];
|
||||
|
||||
if(!res.body.output) res.body.output = '[Empty Response]'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue