Fix default model when loading preset

This commit is contained in:
Cohee
2024-08-26 17:34:54 +03:00
parent 2b32c8638a
commit 662e29911c

View File

@ -3979,8 +3979,9 @@ async function onModelChange() {
}
if ($(this).is('#model_ai21_select')) {
if (value.startsWith('j2-')) {
if (value === '' || value.startsWith('j2-')) {
value = 'jamba-1.5-large';
$('#model_ai21_select').val(value);
}
console.log('AI21 model changed to', value);