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