| 4215 | if (oai_settings.max_context_unlocked) { | 4215 | if (oai_settings.max_context_unlocked) { |
| 4216 | $('#openai_max_context').attr('max', unlocked_max); | 4216 | $('#openai_max_context').attr('max', unlocked_max); |
| 4217 | } | 4217 | } |
| 4218 | else if (['command-light', 'command'].includes(oai_settings.cohere_model)) { | 4218 | else if (['command-light-nightly', 'command-light', 'command'].includes(oai_settings.cohere_model)) { |
| 4219 | $('#openai_max_context').attr('max', max_4k); | 4219 | $('#openai_max_context').attr('max', max_4k); |
| 4220 | } | 4220 | } |
| 4221 | else if (['command-light-nightly', 'command-nightly'].includes(oai_settings.cohere_model)) { | 4221 | else if (oai_settings.cohere_model.includes('command-r') || ['c4ai-aya-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)) { | | |
| 4225 | $('#openai_max_context').attr('max', max_128k); | 4222 | $('#openai_max_context').attr('max', max_128k); |
| 4226 | } | 4223 | } |
| 4227 | else if (['c4ai-aya-23', 'c4ai-aya-expanse-8b'].includes(oai_settings.cohere_model)) { | 4224 | else if (['c4ai-aya-23-8b', 'c4ai-aya-expanse-8b'].includes(oai_settings.cohere_model)) { |
| 4228 | $('#openai_max_context').attr('max', max_8k); | 4225 | $('#openai_max_context').attr('max', max_8k); |
| 4229 | } | 4226 | } |
| 4230 | else { | 4227 | else { |