From 0d84fa67bdbc8d9d1f3e43b7fd249769be96e192 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 26 Aug 2025 21:34:02 +0300 Subject: [PATCH] gemini-2.5-flash-image-preview --- public/index.html | 2 ++ public/scripts/extensions/caption/settings.html | 2 ++ src/endpoints/backends/chat-completions.js | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index b91068d66..eb842808f 100644 --- a/public/index.html +++ b/public/index.html @@ -3178,6 +3178,7 @@ + @@ -3356,6 +3357,7 @@ + diff --git a/public/scripts/extensions/caption/settings.html b/public/scripts/extensions/caption/settings.html index d34538b0d..9f5219961 100644 --- a/public/scripts/extensions/caption/settings.html +++ b/public/scripts/extensions/caption/settings.html @@ -110,6 +110,7 @@ + @@ -146,6 +147,7 @@ + diff --git a/src/endpoints/backends/chat-completions.js b/src/endpoints/backends/chat-completions.js index b755f32f4..e4153a3d7 100644 --- a/src/endpoints/backends/chat-completions.js +++ b/src/endpoints/backends/chat-completions.js @@ -371,6 +371,7 @@ async function sendMakerSuiteRequest(request, response) { 'gemini-2.0-flash-exp', 'gemini-2.0-flash-exp-image-generation', 'gemini-2.0-flash-preview-image-generation', + 'gemini-2.5-flash-image-preview', ]; // These models do not support setting the threshold to OFF at all. @@ -381,7 +382,7 @@ async function sendMakerSuiteRequest(request, response) { 'gemini-1.5-flash-8b-exp-0924', ]; - const isThinkingConfigModel = m => /^gemini-2.5-(flash|pro)/.test(m); + const isThinkingConfigModel = m => /^gemini-2.5-(flash|pro)/.test(m) && !/-image-preview$/.test(m); const noSearchModels = [ 'gemini-2.0-flash-lite',