Merge pull request #2592 from Succubyss/gemini-maxtemp Update MakerSuite temperature caps

2871f309c9bf6c4cf4d38904b76fe5e896dd92b7

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +3 -2Showing whitespace changes
public/scripts/openai.js+3 -2
@@ -4066,8 +4066,9 @@ async function onModelChange() {
4066 } else {4066 } else {
4067 $('#openai_max_context').attr('max', max_8k);4067 $('#openai_max_context').attr('max', max_8k);
4068 }4068 }
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');
4071 oai_settings.openai_max_context = Math.min(Number($('#openai_max_context').attr('max')), oai_settings.openai_max_context);4072 oai_settings.openai_max_context = Math.min(Number($('#openai_max_context').attr('max')), oai_settings.openai_max_context);
4072 $('#openai_max_context').val(oai_settings.openai_max_context).trigger('input');4073 $('#openai_max_context').val(oai_settings.openai_max_context).trigger('input');
4073 }4074 }