diff --git a/public/scripts/openai.js b/public/scripts/openai.js index 20cbd76eb..fb7f7c766 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -3569,6 +3569,7 @@ async function onModelChange() { } 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'); + $('#temp_openai').attr('max', oai_max_temp).val(oai_settings.temp_openai).trigger('input'); } if (oai_settings.chat_completion_source == chat_completion_sources.MAKERSUITE) { @@ -3696,6 +3697,7 @@ async function onModelChange() { } 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'); + $('#temp_openai').attr('max', claude_max_temp).val(oai_settings.temp_openai).trigger('input'); } if (oai_settings.chat_completion_source == chat_completion_sources.AI21) { @@ -3734,6 +3736,7 @@ async function onModelChange() { $('#openai_max_context').attr('max', unlocked_max); 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'); + $('#temp_openai').attr('max', oai_max_temp).val(oai_settings.temp_openai).trigger('input'); } $('#openai_max_context_counter').attr('max', Number($('#openai_max_context').attr('max')));