diff --git a/public/index.html b/public/index.html index 1b125e3a0..7c130227b 100644 --- a/public/index.html +++ b/public/index.html @@ -2979,6 +2979,7 @@ PaLM 2 Chat (Legacy) + Gemini Experimental 2024-11-14 Gemini 1.5 Pro Experiment 2024-08-01 Gemini 1.5 Pro Experiment 2024-08-27 Gemini 1.5 Pro [latest] diff --git a/public/scripts/extensions/caption/settings.html b/public/scripts/extensions/caption/settings.html index f0e0ca4eb..e9363eebe 100644 --- a/public/scripts/extensions/caption/settings.html +++ b/public/scripts/extensions/caption/settings.html @@ -58,6 +58,7 @@ gemini-1.5-flash-exp-0827 gemini-1.5-flash-8b-exp-0827 gemini-1.5-flash-8b-exp-0924 + gemini-exp-1114 gemini-1.5-pro gemini-1.5-pro-latest gemini-1.5-pro-001 diff --git a/public/scripts/openai.js b/public/scripts/openai.js index dd094384d..f3e4c6468 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -4056,6 +4056,8 @@ async function onModelChange() { if (oai_settings.chat_completion_source == chat_completion_sources.MAKERSUITE) { if (oai_settings.max_context_unlocked) { $('#openai_max_context').attr('max', max_2mil); + } else if (value.match('gemini-exp-1114')){ + $('#openai_max_context').attr('max', max_32k); } else if (value.includes('gemini-1.5-pro')) { $('#openai_max_context').attr('max', max_2mil); } else if (value.includes('gemini-1.5-flash')) { @@ -4742,6 +4744,7 @@ export function isImageInliningSupported() { 'gemini-1.5-flash-8b', 'gemini-1.5-flash-8b-exp-0827', 'gemini-1.5-flash-8b-exp-0924', + 'gemini-exp-1114', 'gemini-1.0-pro-vision-latest', 'gemini-1.5-pro', 'gemini-1.5-pro-latest', diff --git a/src/endpoints/backends/chat-completions.js b/src/endpoints/backends/chat-completions.js index fe258cfc9..e614f8795 100644 --- a/src/endpoints/backends/chat-completions.js +++ b/src/endpoints/backends/chat-completions.js @@ -267,7 +267,7 @@ async function sendMakerSuiteRequest(request, response) { delete generationConfig.stopSequences; } - const should_use_system_prompt = (model.includes('gemini-1.5-flash') || model.includes('gemini-1.5-pro')) && request.body.use_makersuite_sysprompt; + const should_use_system_prompt = (model.includes('gemini-1.5-flash') || model.includes('gemini-1.5-pro') || model.match('gemini-exp-1114')) && request.body.use_makersuite_sysprompt; const prompt = convertGooglePrompt(request.body.messages, model, should_use_system_prompt, request.body.char_name, request.body.user_name); let body = { contents: prompt.contents, diff --git a/src/prompt-converters.js b/src/prompt-converters.js index 9c4502303..0513e7f4a 100644 --- a/src/prompt-converters.js +++ b/src/prompt-converters.js @@ -346,6 +346,7 @@ export function convertGooglePrompt(messages, model, useSysPrompt = false, charN 'gemini-1.5-flash-8b', 'gemini-1.5-flash-8b-exp-0827', 'gemini-1.5-flash-8b-exp-0924', + 'gemini-exp-1114', 'gemini-1.5-pro', 'gemini-1.5-pro-latest', 'gemini-1.5-pro-001',