AI21: Add Jamba 1.7 models
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
"openrouter_use_fallback": false,
|
"openrouter_use_fallback": false,
|
||||||
"openrouter_group_models": false,
|
"openrouter_group_models": false,
|
||||||
"openrouter_sort_models": "alphabetically",
|
"openrouter_sort_models": "alphabetically",
|
||||||
"ai21_model": "jamba-1.5-large",
|
"ai21_model": "jamba-large",
|
||||||
"mistralai_model": "mistral-large-latest",
|
"mistralai_model": "mistral-large-latest",
|
||||||
"custom_model": "",
|
"custom_model": "",
|
||||||
"custom_url": "",
|
"custom_url": "",
|
||||||
|
|||||||
@@ -623,7 +623,7 @@
|
|||||||
"wi_format": "{0}",
|
"wi_format": "{0}",
|
||||||
"openai_model": "gpt-4-turbo",
|
"openai_model": "gpt-4-turbo",
|
||||||
"claude_model": "claude-3-5-sonnet-20240620",
|
"claude_model": "claude-3-5-sonnet-20240620",
|
||||||
"ai21_model": "jamba-1.5-large",
|
"ai21_model": "jamba-large",
|
||||||
"windowai_model": "",
|
"windowai_model": "",
|
||||||
"openrouter_model": "OR_Website",
|
"openrouter_model": "OR_Website",
|
||||||
"reverse_proxy": "",
|
"reverse_proxy": "",
|
||||||
|
|||||||
+5
-1
@@ -3165,7 +3165,11 @@
|
|||||||
<option value="jamba-mini">jamba-mini</option>
|
<option value="jamba-mini">jamba-mini</option>
|
||||||
<option value="jamba-large">jamba-large</option>
|
<option value="jamba-large">jamba-large</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup label="Jamba 1.6">
|
<optgroup label="Jamba 1.7">
|
||||||
|
<option value="jamba-1.7-mini">jamba-1.7-mini</option>
|
||||||
|
<option value="jamba-1.7-large">jamba-1.7-large</option>
|
||||||
|
</optgroup>
|
||||||
|
<optgroup label="Jamba 1.6 (Deprecated)">
|
||||||
<option value="jamba-1.6-mini">jamba-1.6-mini</option>
|
<option value="jamba-1.6-mini">jamba-1.6-mini</option>
|
||||||
<option value="jamba-1.6-large">jamba-1.6-large</option>
|
<option value="jamba-1.6-large">jamba-1.6-large</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
|
|||||||
@@ -366,7 +366,7 @@ const default_settings = {
|
|||||||
claude_model: 'claude-3-5-sonnet-20240620',
|
claude_model: 'claude-3-5-sonnet-20240620',
|
||||||
google_model: 'gemini-1.5-pro',
|
google_model: 'gemini-1.5-pro',
|
||||||
vertexai_model: 'gemini-2.0-flash-001',
|
vertexai_model: 'gemini-2.0-flash-001',
|
||||||
ai21_model: 'jamba-1.6-large',
|
ai21_model: 'jamba-large',
|
||||||
mistralai_model: 'mistral-large-latest',
|
mistralai_model: 'mistral-large-latest',
|
||||||
cohere_model: 'command-r-plus',
|
cohere_model: 'command-r-plus',
|
||||||
perplexity_model: 'sonar-pro',
|
perplexity_model: 'sonar-pro',
|
||||||
@@ -455,7 +455,7 @@ const oai_settings = {
|
|||||||
claude_model: 'claude-3-5-sonnet-20240620',
|
claude_model: 'claude-3-5-sonnet-20240620',
|
||||||
google_model: 'gemini-1.5-pro',
|
google_model: 'gemini-1.5-pro',
|
||||||
vertexai_model: 'gemini-2.0-flash-001',
|
vertexai_model: 'gemini-2.0-flash-001',
|
||||||
ai21_model: 'jamba-1.6-large',
|
ai21_model: 'jamba-large',
|
||||||
mistralai_model: 'mistral-large-latest',
|
mistralai_model: 'mistral-large-latest',
|
||||||
cohere_model: 'command-r-plus',
|
cohere_model: 'command-r-plus',
|
||||||
perplexity_model: 'sonar-pro',
|
perplexity_model: 'sonar-pro',
|
||||||
@@ -3589,7 +3589,7 @@ function loadOpenAISettings(data, settings) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (oai_settings.ai21_model.startsWith('j2-')) {
|
if (oai_settings.ai21_model.startsWith('j2-')) {
|
||||||
oai_settings.ai21_model = 'jamba-1.6-large';
|
oai_settings.ai21_model = 'jamba-large';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.wrap_in_quotes !== undefined) oai_settings.wrap_in_quotes = !!settings.wrap_in_quotes;
|
if (settings.wrap_in_quotes !== undefined) oai_settings.wrap_in_quotes = !!settings.wrap_in_quotes;
|
||||||
@@ -4713,7 +4713,7 @@ async function onModelChange() {
|
|||||||
|
|
||||||
if ($(this).is('#model_ai21_select')) {
|
if ($(this).is('#model_ai21_select')) {
|
||||||
if (value === '' || value.startsWith('j2-')) {
|
if (value === '' || value.startsWith('j2-')) {
|
||||||
value = 'jamba-1.6-large';
|
value = 'jamba-large';
|
||||||
$('#model_ai21_select').val(value);
|
$('#model_ai21_select').val(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user