From 54ab624ceab75da3c0e1d33ae26a7b18c8085005 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Sun, 8 Oct 2023 21:18:25 +0200 Subject: [PATCH] only display temperature if its modified --- commands/message/fun/bard.js | 2 +- commands/message/fun/chat.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/message/fun/bard.js b/commands/message/fun/bard.js index 311d6da..57b0350 100644 --- a/commands/message/fun/bard.js +++ b/commands/message/fun/bard.js @@ -53,7 +53,7 @@ module.exports = { let temperature = "0.25" let temperatureDisplay = "" - if(args.temperature){ + if(args.temperature !== 0.25){ temperature = parseFloat(args.temperature) temperatureDisplay = " " + smallIconPill("example", temperature) } diff --git a/commands/message/fun/chat.js b/commands/message/fun/chat.js index a48bab2..b0b33ea 100644 --- a/commands/message/fun/chat.js +++ b/commands/message/fun/chat.js @@ -52,9 +52,9 @@ module.exports = { modelDisplay = " " + smallIconPill("robot", model) } - let temperature = "CHATGPT" + let temperature = "0.25" let temperatureDisplay = "" - if(args.temperature){ + if(args.temperature !== 0.25){ temperature = parseFloat(args.temperature) temperatureDisplay = " " + smallIconPill("example", temperature) }