mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
fix newlines in prompt displays
This commit is contained in:
parent
e1c05f8460
commit
88fe4f15c1
2 changed files with 2 additions and 2 deletions
|
@ -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{
|
||||
|
|
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue