fix newlines in prompt displays

This commit is contained in:
derpystuff 2023-10-11 21:49:54 +02:00
parent e1c05f8460
commit 88fe4f15c1
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ module.exports = {
let temperature = "0.25"
if(args.temperature !== 0.25) temperature = parseFloat(args.temperature)
let inputDisplay = args.text
let inputDisplay = args.text.replace(/\n/g, ' ')
if(inputDisplay.length >= 50) inputDisplay = inputDisplay.substr(0,50) + '...'
try{

View file

@ -82,7 +82,7 @@ module.exports = {
model
})
let inputDisplay = args.text
let inputDisplay = args.text.replace(/\n/g, ' ')
if(inputDisplay.length >= 50) inputDisplay = inputDisplay.substr(0,50) + '...'
let description = []