Trigger inputs

This commit is contained in:
Cohee 2024-10-30 01:52:53 +02:00
parent 5ee0a6ec30
commit 085d852b57

View File

@ -4330,6 +4330,10 @@ async function onModelChange() {
} else {
$('#openai_max_context').attr('max', max_128k);
}
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.COHERE) {