Fix Cohere context sizes

ce536201e6576e2c6793d3735c184c833fb6b914

cloak1505 <nanashi-san@outlook.com>

Signed
1 files changed, +3 -6Showing whitespace changes
public/scripts/openai.js+3 -6
@@ -4215,16 +4215,13 @@ async function onModelChange() {
42154215 if (oai_settings.max_context_unlocked) {
42164216 $('#openai_max_context').attr('max', unlocked_max);
42174217 }
42184218 else if (['command-light-nightly', 'command-light', 'command'].includes(oai_settings.cohere_model)) {
42194219 $('#openai_max_context').attr('max', max_4k);
42204220 }
42214221 else if ([oai_settings.cohere_model.includes('command-lightr') || ['c4ai-nightlyaya-23', 'c4ai-aya-expanse-32b', 'command-nightly'].includes(oai_settings.cohere_model)) {
4222- $('#openai_max_context').attr('max', max_8k);
4223- }
4224- else if (oai_settings.cohere_model.includes('command-r') || ['c4ai-aya-expanse-32b'].includes(oai_settings.cohere_model)) {
42254222 $('#openai_max_context').attr('max', max_128k);
42264223 }
42274224 else if (['c4ai-aya-23-8b', 'c4ai-aya-expanse-8b'].includes(oai_settings.cohere_model)) {
42284225 $('#openai_max_context').attr('max', max_8k);
42294226 }
42304227 else {