Use J1.5 Large by default

7d4b3e0800037545ca048c27a609b3a5679c5d10

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

3 files changed, +9 -5Showing whitespace changes
default/content/presets/openai/Default.json+1 -1
@@ -8,7 +8,7 @@
88 "openrouter_force_instruct": false,
99 "openrouter_group_models": false,
1010 "openrouter_sort_models": "alphabetically",
1111 "ai21_model": "jamba-1.5-minilarge",
1212 "mistralai_model": "mistral-large-latest",
1313 "custom_model": "",
1414 "custom_url": "",
default/content/settings.json+1 -1
@@ -613,7 +613,7 @@
613613 "wi_format": "{0}",
614614 "openai_model": "gpt-4-turbo",
615615 "claude_model": "claude-3-5-sonnet-20240620",
616616 "ai21_model": "jamba-1.5-minilarge",
617617 "windowai_model": "",
618618 "openrouter_model": "OR_Website",
619619 "jailbreak_system": true,
public/scripts/openai.js+7 -3
@@ -246,7 +246,7 @@ const default_settings = {
246246 openai_model: 'gpt-4-turbo',
247247 claude_model: 'claude-3-5-sonnet-20240620',
248248 google_model: 'gemini-1.5-pro',
249249 ai21_model: 'jamba-1.5-minilarge',
250250 mistralai_model: 'mistral-large-latest',
251251 cohere_model: 'command-r-plus',
252252 perplexity_model: 'llama-3.1-70b-instruct',
@@ -324,7 +324,7 @@ const oai_settings = {
324324 openai_model: 'gpt-4-turbo',
325325 claude_model: 'claude-3-5-sonnet-20240620',
326326 google_model: 'gemini-1.5-pro',
327327 ai21_model: 'jamba-1.5-minilarge',
328328 mistralai_model: 'mistral-large-latest',
329329 cohere_model: 'command-r-plus',
330330 perplexity_model: 'llama-3.1-70b-instruct',
@@ -3041,7 +3041,7 @@ function loadOpenAISettings(data, settings) {
30413041 }
30423042
30433043 if (oai_settings.ai21_model.startsWith('j2-')) {
30443044 oai_settings.ai21_model = 'jamba-1.5-minilarge';
30453045 }
30463046
30473047 if (settings.wrap_in_quotes !== undefined) oai_settings.wrap_in_quotes = !!settings.wrap_in_quotes;
@@ -3979,6 +3979,10 @@ async function onModelChange() {
39793979 }
39803980
39813981 if ($(this).is('#model_ai21_select')) {
3982+ if (value.startsWith('j2-')) {
3983+ value = 'jamba-1.5-large';
3984+ }
3985+
39823986 console.log('AI21 model changed to', value);
39833987 oai_settings.ai21_model = value;
39843988 }