MistralAI: Explicitly set context size for ministral

This commit is contained in:
Cohee 2024-10-18 20:52:17 +03:00
parent ff2c71c4ef
commit 1ac6780e9c
1 changed files with 2 additions and 0 deletions

View File

@ -4129,6 +4129,8 @@ async function onModelChange() {
$('#openai_max_context').attr('max', max_64k);
} else if (oai_settings.mistralai_model.includes('pixtral')) {
$('#openai_max_context').attr('max', max_128k);
} else if (oai_settings.mistralai_model.includes('ministral')) {
$('#openai_max_context').attr('max', max_32k);
} else {
$('#openai_max_context').attr('max', max_32k);
}