From 4561eca684602a93df8dec4040bebfa00f3a7149 Mon Sep 17 00:00:00 2001 From: Succubyss <87207237+Succubyss@users.noreply.github.com> Date: Wed, 31 Jul 2024 15:59:34 -0500 Subject: [PATCH] correct MakerSuite max temps --- public/scripts/openai.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/scripts/openai.js b/public/scripts/openai.js index f1d3c1814..369cccc14 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -4066,8 +4066,9 @@ async function onModelChange() { } else { $('#openai_max_context').attr('max', max_8k); } - oai_settings.temp_openai = Math.min(claude_max_temp, oai_settings.temp_openai); - $('#temp_openai').attr('max', claude_max_temp).val(oai_settings.temp_openai).trigger('input'); + let makersuite_max_temp = (value.includes('vision') || value.includes('ultra')) ? 1.0 : 2.0; + oai_settings.temp_openai = Math.min(makersuite_max_temp, oai_settings.temp_openai); + $('#temp_openai').attr('max', makersuite_max_temp).val(oai_settings.temp_openai).trigger('input'); oai_settings.openai_max_context = Math.min(Number($('#openai_max_context').attr('max')), oai_settings.openai_max_context); $('#openai_max_context').val(oai_settings.openai_max_context).trigger('input'); }