New Cohere model

This commit is contained in:
Cohee 2024-05-24 17:17:21 +03:00
parent 967a7980f5
commit 4d161768c0
2 changed files with 4 additions and 0 deletions

View File

@ -2821,6 +2821,7 @@
<h4 data-i18n="Cohere Model">Cohere Model</h4>
<select id="model_cohere_select">
<optgroup label="Stable">
<option value="c4ai-aya-23">c4ai-aya-23</option>
<option value="command-light">command-light</option>
<option value="command">command</option>
<option value="command-r">command-r</option>

View File

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