only display temperature if its modified

This commit is contained in:
derpystuff 2023-10-08 21:18:25 +02:00
parent 66035229bc
commit 54ab624cea
2 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@ module.exports = {
let temperature = "0.25" let temperature = "0.25"
let temperatureDisplay = "" let temperatureDisplay = ""
if(args.temperature){ if(args.temperature !== 0.25){
temperature = parseFloat(args.temperature) temperature = parseFloat(args.temperature)
temperatureDisplay = " " + smallIconPill("example", temperature) temperatureDisplay = " " + smallIconPill("example", temperature)
} }

View file

@ -52,9 +52,9 @@ module.exports = {
modelDisplay = " " + smallIconPill("robot", model) modelDisplay = " " + smallIconPill("robot", model)
} }
let temperature = "CHATGPT" let temperature = "0.25"
let temperatureDisplay = "" let temperatureDisplay = ""
if(args.temperature){ if(args.temperature !== 0.25){
temperature = parseFloat(args.temperature) temperature = parseFloat(args.temperature)
temperatureDisplay = " " + smallIconPill("example", temperature) temperatureDisplay = " " + smallIconPill("example", temperature)
} }