From 8b092adc149f7c7875011a0752d558e673b663a4 Mon Sep 17 00:00:00 2001 From: 50h100a <136940546+50h100a@users.noreply.github.com> Date: Mon, 25 Mar 2024 12:25:03 -0400 Subject: [PATCH] Use mode enum to toggle dynatemp behavior. --- public/scripts/textgen-settings.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/scripts/textgen-settings.js b/public/scripts/textgen-settings.js index 4236762e6..b16b67173 100644 --- a/public/scripts/textgen-settings.js +++ b/public/scripts/textgen-settings.js @@ -1051,9 +1051,9 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate, params.n = canMultiSwipe ? settings.n : 1; params.epsilon_cutoff /= 1000; params.eta_cutoff /= 1000; - params.dynatemp_mode = params.dynamic_temperature ? true : false; - params.dynatemp_min = params.dynamic_temperature ? params.dynatemp_low : 0; - params.dynatemp_max = params.dynamic_temperature ? params.dynatemp_high : 0; + params.dynatemp_mode = params.dynamic_temperature ? 1 : 0; + params.dynatemp_min = params.dynatemp_low; + params.dynatemp_max = params.dynatemp_high; delete params.dynatemp_low, params.dynatemp_high; }