From 71041ec7641db6536cfeb93fd14ef065e7fb1f02 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 15 Apr 2024 02:00:56 +0300 Subject: [PATCH] Properly unset temp cap for all Chat Comp sources --- public/scripts/openai.js | 3 +++ 1 file changed, 3 insertions(+) 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')));