Cohere: new cmd-r models

This commit is contained in:
Cohee
2024-08-30 20:00:42 +03:00
parent 1fa9710a5c
commit f155b83792
3 changed files with 4 additions and 1 deletions

View File

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