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 @@
8 "openrouter_force_instruct": false,8 "openrouter_force_instruct": false,
9 "openrouter_group_models": false,9 "openrouter_group_models": false,
10 "openrouter_sort_models": "alphabetically",10 "openrouter_sort_models": "alphabetically",
11 "ai21_model": "jamba-1.5-mini",11 "ai21_model": "jamba-1.5-large",
12 "mistralai_model": "mistral-large-latest",12 "mistralai_model": "mistral-large-latest",
13 "custom_model": "",13 "custom_model": "",
14 "custom_url": "",14 "custom_url": "",
default/content/settings.json+1 -1
@@ -613,7 +613,7 @@
613 "wi_format": "{0}",613 "wi_format": "{0}",
614 "openai_model": "gpt-4-turbo",614 "openai_model": "gpt-4-turbo",
615 "claude_model": "claude-3-5-sonnet-20240620",615 "claude_model": "claude-3-5-sonnet-20240620",
616 "ai21_model": "jamba-1.5-mini",616 "ai21_model": "jamba-1.5-large",
617 "windowai_model": "",617 "windowai_model": "",
618 "openrouter_model": "OR_Website",618 "openrouter_model": "OR_Website",
619 "jailbreak_system": true,619 "jailbreak_system": true,
public/scripts/openai.js+7 -3
@@ -246,7 +246,7 @@ const default_settings = {
246 openai_model: 'gpt-4-turbo',246 openai_model: 'gpt-4-turbo',
247 claude_model: 'claude-3-5-sonnet-20240620',247 claude_model: 'claude-3-5-sonnet-20240620',
248 google_model: 'gemini-1.5-pro',248 google_model: 'gemini-1.5-pro',
249 ai21_model: 'jamba-1.5-mini',249 ai21_model: 'jamba-1.5-large',
250 mistralai_model: 'mistral-large-latest',250 mistralai_model: 'mistral-large-latest',
251 cohere_model: 'command-r-plus',251 cohere_model: 'command-r-plus',
252 perplexity_model: 'llama-3.1-70b-instruct',252 perplexity_model: 'llama-3.1-70b-instruct',
@@ -324,7 +324,7 @@ const oai_settings = {
324 openai_model: 'gpt-4-turbo',324 openai_model: 'gpt-4-turbo',
325 claude_model: 'claude-3-5-sonnet-20240620',325 claude_model: 'claude-3-5-sonnet-20240620',
326 google_model: 'gemini-1.5-pro',326 google_model: 'gemini-1.5-pro',
327 ai21_model: 'jamba-1.5-mini',327 ai21_model: 'jamba-1.5-large',
328 mistralai_model: 'mistral-large-latest',328 mistralai_model: 'mistral-large-latest',
329 cohere_model: 'command-r-plus',329 cohere_model: 'command-r-plus',
330 perplexity_model: 'llama-3.1-70b-instruct',330 perplexity_model: 'llama-3.1-70b-instruct',
@@ -3041,7 +3041,7 @@ function loadOpenAISettings(data, settings) {
3041 }3041 }
30423042
3043 if (oai_settings.ai21_model.startsWith('j2-')) {3043 if (oai_settings.ai21_model.startsWith('j2-')) {
3044 oai_settings.ai21_model = 'jamba-1.5-mini';3044 oai_settings.ai21_model = 'jamba-1.5-large';
3045 }3045 }
30463046
3047 if (settings.wrap_in_quotes !== undefined) oai_settings.wrap_in_quotes = !!settings.wrap_in_quotes;3047 if (settings.wrap_in_quotes !== undefined) oai_settings.wrap_in_quotes = !!settings.wrap_in_quotes;
@@ -3979,6 +3979,10 @@ 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-')) {
3983 value = 'jamba-1.5-large';
3984 }
3985
3982 console.log('AI21 model changed to', value);3986 console.log('AI21 model changed to', value);
3983 oai_settings.ai21_model = value;3987 oai_settings.ai21_model = value;
3984 }3988 }