Unlocked context for Scale

This commit is contained in:
Cohee
2023-07-05 23:42:29 +03:00
parent d7db7885e5
commit 2a8f3e7334

View File

@@ -1626,7 +1626,11 @@ async function onModelChange() {
}
if (oai_settings.chat_completion_source == chat_completion_sources.SCALE) {
$('#openai_max_context').attr('max', scale_max);
if (oai_settings.max_context_unlocked) {
$('#openai_max_context').attr('max', unlocked_max);
} else {
$('#openai_max_context').attr('max', scale_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');
}