correct MakerSuite max temps

4561eca684602a93df8dec4040bebfa00f3a7149

Succubyss <87207237+Succubyss@users.noreply.github.com>

1 files changed, +3 -2Showing whitespace changes
public/scripts/openai.js+3 -2
@@ -4066,8 +4066,9 @@ async function onModelChange() {
40664066 } else {
40674067 $('#openai_max_context').attr('max', max_8k);
40684068 }
4069- oai_settings.temp_openai = Math.min(claude_max_temp, oai_settings.temp_openai);
4069+ let makersuite_max_temp = (value.includes('vision') || value.includes('ultra')) ? 1.0 : 2.0;
4070- $('#temp_openai').attr('max', claude_max_temp).val(oai_settings.temp_openai).trigger('input');
4070+ oai_settings.temp_openai = Math.min(makersuite_max_temp, oai_settings.temp_openai);
4071+ $('#temp_openai').attr('max', makersuite_max_temp).val(oai_settings.temp_openai).trigger('input');
40714072 oai_settings.openai_max_context = Math.min(Number($('#openai_max_context').attr('max')), oai_settings.openai_max_context);
40724073 $('#openai_max_context').val(oai_settings.openai_max_context).trigger('input');
40734074 }