Fix default model when loading preset

662e29911c6a07352051ae69f40556c8edeb6046

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -1Ignore whitespace
public/scripts/openai.js+2 -1
@@ -3979,8 +3979,9 @@ async function onModelChange() {
3979 }3979 }
39803980
3981 if ($(this).is('#model_ai21_select')) {3981 if ($(this).is('#model_ai21_select')) {
3982 if (value.startsWith('j2-')) {3982 if (value === '' || value.startsWith('j2-')) {
3983 value = 'jamba-1.5-large';3983 value = 'jamba-1.5-large';
3984 $('#model_ai21_select').val(value);
3984 }3985 }
39853986
3986 console.log('AI21 model changed to', value);3987 console.log('AI21 model changed to', value);