AI21: Add Jamba 1.7 models

5be2323e2373f367f52353a985cc73ceb70d65f2

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

4 files changed, +11 -7Showing whitespace changes
default/content/presets/openai/Default.json+1 -1
@@ -7,7 +7,7 @@
77 "openrouter_use_fallback": false,
88 "openrouter_group_models": false,
99 "openrouter_sort_models": "alphabetically",
1010 "ai21_model": "jamba-1.5-large",
1111 "mistralai_model": "mistral-large-latest",
1212 "custom_model": "",
1313 "custom_url": "",
default/content/settings.json+1 -1
@@ -623,7 +623,7 @@
623623 "wi_format": "{0}",
624624 "openai_model": "gpt-4-turbo",
625625 "claude_model": "claude-3-5-sonnet-20240620",
626626 "ai21_model": "jamba-1.5-large",
627627 "windowai_model": "",
628628 "openrouter_model": "OR_Website",
629629 "reverse_proxy": "",
public/index.html+5 -1
@@ -3165,7 +3165,11 @@
31653165 <option value="jamba-mini">jamba-mini</option>
31663166 <option value="jamba-large">jamba-large</option>
31673167 </optgroup>
31683168 <optgroup label="Jamba 1.67">
3169+ <option value="jamba-1.7-mini">jamba-1.7-mini</option>
3170+ <option value="jamba-1.7-large">jamba-1.7-large</option>
3171+ </optgroup>
3172+ <optgroup label="Jamba 1.6 (Deprecated)">
31693173 <option value="jamba-1.6-mini">jamba-1.6-mini</option>
31703174 <option value="jamba-1.6-large">jamba-1.6-large</option>
31713175 </optgroup>
public/scripts/openai.js+4 -4
@@ -366,7 +366,7 @@ const default_settings = {
366366 claude_model: 'claude-3-5-sonnet-20240620',
367367 google_model: 'gemini-1.5-pro',
368368 vertexai_model: 'gemini-2.0-flash-001',
369369 ai21_model: 'jamba-1.6-large',
370370 mistralai_model: 'mistral-large-latest',
371371 cohere_model: 'command-r-plus',
372372 perplexity_model: 'sonar-pro',
@@ -455,7 +455,7 @@ const oai_settings = {
455455 claude_model: 'claude-3-5-sonnet-20240620',
456456 google_model: 'gemini-1.5-pro',
457457 vertexai_model: 'gemini-2.0-flash-001',
458458 ai21_model: 'jamba-1.6-large',
459459 mistralai_model: 'mistral-large-latest',
460460 cohere_model: 'command-r-plus',
461461 perplexity_model: 'sonar-pro',
@@ -3589,7 +3589,7 @@ function loadOpenAISettings(data, settings) {
35893589 }
35903590
35913591 if (oai_settings.ai21_model.startsWith('j2-')) {
35923592 oai_settings.ai21_model = 'jamba-1.6-large';
35933593 }
35943594
35953595 if (settings.wrap_in_quotes !== undefined) oai_settings.wrap_in_quotes = !!settings.wrap_in_quotes;
@@ -4713,7 +4713,7 @@ async function onModelChange() {
47134713
47144714 if ($(this).is('#model_ai21_select')) {
47154715 if (value === '' || value.startsWith('j2-')) {
47164716 value = 'jamba-1.6-large';
47174717 $('#model_ai21_select').val(value);
47184718 }
47194719