diff --git a/public/index.html b/public/index.html index ac3b7974a..ca23fccaf 100644 --- a/public/index.html +++ b/public/index.html @@ -2805,6 +2805,7 @@ + @@ -2813,6 +2814,7 @@ + diff --git a/public/scripts/extensions/caption/settings.html b/public/scripts/extensions/caption/settings.html index d686ca0a3..158e5f6d4 100644 --- a/public/scripts/extensions/caption/settings.html +++ b/public/scripts/extensions/caption/settings.html @@ -44,6 +44,8 @@ + + diff --git a/public/scripts/openai.js b/public/scripts/openai.js index cc7833f2a..fc70d2967 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -4665,10 +4665,14 @@ export function isImageInliningSupported() { // gultra just isn't being offered as multimodal, thanks google. const visionSupportedModels = [ 'gpt-4-vision', - 'gemini-1.5-flash-latest', 'gemini-1.5-flash', + 'gemini-1.5-flash-latest', + 'gemini-1.5-flash-001', 'gemini-1.0-pro-vision-latest', + 'gemini-1.5-pro', 'gemini-1.5-pro-latest', + 'gemini-1.5-pro-001', + 'gemini-1.5-pro-exp-0801', 'gemini-pro-vision', 'claude-3', 'claude-3-5', diff --git a/src/endpoints/backends/chat-completions.js b/src/endpoints/backends/chat-completions.js index 2177e0c12..dce9d498b 100644 --- a/src/endpoints/backends/chat-completions.js +++ b/src/endpoints/backends/chat-completions.js @@ -271,7 +271,7 @@ async function sendMakerSuiteRequest(request, response) { }; function getGeminiBody() { - const should_use_system_prompt = ['gemini-1.5-flash-latest', 'gemini-1.5-pro-latest'].includes(model) && request.body.use_makersuite_sysprompt; + const should_use_system_prompt = ['gemini-1.5-flash', 'gemini-1.5-pro'].includes(model) && 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 404018774..d074228a9 100644 --- a/src/prompt-converters.js +++ b/src/prompt-converters.js @@ -264,8 +264,13 @@ function convertGooglePrompt(messages, model, useSysPrompt = false, charName = ' const PNG_PIXEL = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='; const visionSupportedModels = [ + 'gemini-1.5-flash', 'gemini-1.5-flash-latest', + 'gemini-1.5-flash-001', + 'gemini-1.5-pro', 'gemini-1.5-pro-latest', + 'gemini-1.5-pro-001', + 'gemini-1.5-pro-exp-0801', 'gemini-1.0-pro-vision-latest', 'gemini-pro-vision', ];