Supports Gemini context length reduction.

This commit is contained in:
M0cho 2024-10-04 20:16:24 +09:00
parent d53baed5cf
commit 38875fb940
1 changed files with 0 additions and 2 deletions

View File

@ -4009,8 +4009,6 @@ async function onModelChange() {
$('#openai_max_context').attr('max', max_2mil);
} else if (value.includes('gemini-1.5-pro')) {
$('#openai_max_context').attr('max', max_2mil);
} else if (value.match('gemini-1.5-flash-002')) {
$('#openai_max_context').attr('max', max_2mil);
} else if (value.includes('gemini-1.5-flash')) {
$('#openai_max_context').attr('max', max_1mil);
} else if (value.includes('gemini-1.0-pro-vision') || value === 'gemini-pro-vision') {