Fix Mistral's Max Temperature

c40caa050f2f6a3c83661585635ec4c18083795a

kashmirmydon <seashallow@proton.me>

Signed
1 files changed, +3 -2Ignore whitespace
public/scripts/openai.js+3 -2
@@ -136,6 +136,7 @@ const claude_100k_max = 99000;
136const unlocked_max = max_2mil;136const unlocked_max = max_2mil;
137const oai_max_temp = 2.0;137const oai_max_temp = 2.0;
138const claude_max_temp = 1.0;138const claude_max_temp = 1.0;
139const mistral_max_temp = 1.5;
139const openrouter_website_model = 'OR_Website';140const openrouter_website_model = 'OR_Website';
140const openai_max_stop_strings = 4;141const openai_max_stop_strings = 4;
141142
@@ -5203,8 +5204,8 @@ async function onModelChange() {
5203 $('#openai_max_context').attr('max', maxContext);5204 $('#openai_max_context').attr('max', maxContext);
5204 oai_settings.openai_max_context = Math.min(oai_settings.openai_max_context, Number($('#openai_max_context').attr('max')));5205 oai_settings.openai_max_context = Math.min(oai_settings.openai_max_context, Number($('#openai_max_context').attr('max')));
5205 $('#openai_max_context').val(oai_settings.openai_max_context).trigger('input');5206 $('#openai_max_context').val(oai_settings.openai_max_context).trigger('input');
5206 oai_settings.temp_openai = Math.min(claude_max_temp, oai_settings.temp_openai);5207 oai_settings.temp_openai = Math.min(mistral_max_temp, oai_settings.temp_openai);
5207 $('#temp_openai').attr('max', claude_max_temp).val(oai_settings.temp_openai).trigger('input');5208 $('#temp_openai').attr('max', mistral_max_temp).val(oai_settings.temp_openai).trigger('input');
5208 }5209 }
52095210
5210 if (oai_settings.chat_completion_source === chat_completion_sources.COHERE) {5211 if (oai_settings.chat_completion_source === chat_completion_sources.COHERE) {