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

@ -2931,6 +2931,8 @@
<option value="command">command</option>
<option value="command-r">command-r</option>
<option value="command-r-plus">command-r-plus</option>
<option value="command-r-08-2024">command-r-08-2024</option>
<option value="command-r-plus-08-2024">command-r-plus-08-2024</option>
</optgroup>
<optgroup label="Nightly">
<option value="command-light-nightly">command-light-nightly</option>

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)) {

View File

@ -570,6 +570,7 @@ async function sendCohereRequest(request, response) {
documents: [],
tools: tools,
search_queries_only: false,
safety_mode: 'NONE',
};
console.log('Cohere request:', requestBody);