| 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 | } |