Add command-r-plus

This commit is contained in:
Cohee
2024-04-04 20:38:34 +03:00
parent cf6705baff
commit 42138ca09b
2 changed files with 2 additions and 1 deletions

View File

@ -2691,6 +2691,7 @@
<option value="command-light">command-light</option> <option value="command-light">command-light</option>
<option value="command">command</option> <option value="command">command</option>
<option value="command-r">command-r</option> <option value="command-r">command-r</option>
<option value="command-r-plus">command-r-plus</option>
</optgroup> </optgroup>
<optgroup label="Nightly"> <optgroup label="Nightly">
<option value="command-light-nightly">command-light-nightly</option> <option value="command-light-nightly">command-light-nightly</option>

View File

@ -3661,7 +3661,7 @@ async function onModelChange() {
else if (['command-light-nightly', 'command-nightly'].includes(oai_settings.cohere_model)) { else if (['command-light-nightly', 'command-nightly'].includes(oai_settings.cohere_model)) {
$('#openai_max_context').attr('max', max_8k); $('#openai_max_context').attr('max', max_8k);
} }
else if (['command-r'].includes(oai_settings.cohere_model)) { else if (['command-r', 'command-r-plus'].includes(oai_settings.cohere_model)) {
$('#openai_max_context').attr('max', max_128k); $('#openai_max_context').attr('max', max_128k);
} }
else { else {