Update context sizes for new Cohere models

ecbf9df79accbd61e021b8000668ff954e4e12d7

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

1 files changed, +2 -2Showing whitespace changes
public/scripts/openai.js+2 -2
@@ -4196,10 +4196,10 @@ async function onModelChange() {
4196 else if (['command-light-nightly', 'command-nightly'].includes(oai_settings.cohere_model)) {4196 else if (['command-light-nightly', 'command-nightly'].includes(oai_settings.cohere_model)) {
4197 $('#openai_max_context').attr('max', max_8k);4197 $('#openai_max_context').attr('max', max_8k);
4198 }4198 }
4199 else if (oai_settings.cohere_model.includes('command-r')) {4199 else if (oai_settings.cohere_model.includes('command-r') || ['c4ai-aya-expanse-32b'].includes(oai_settings.cohere_model)) {
4200 $('#openai_max_context').attr('max', max_128k);4200 $('#openai_max_context').attr('max', max_128k);
4201 }4201 }
4202 else if (['c4ai-aya-23'].includes(oai_settings.cohere_model)) {4202 else if (['c4ai-aya-23', 'c4ai-aya-expanse-8b'].includes(oai_settings.cohere_model)) {
4203 $('#openai_max_context').attr('max', max_8k);4203 $('#openai_max_context').attr('max', max_8k);
4204 }4204 }
4205 else {4205 else {