From c9f90a2bd34737a2ca2e32a5a9a0a95d8393b331 Mon Sep 17 00:00:00 2001 From: InterestingDarkness Date: Wed, 28 May 2025 09:26:06 +0800 Subject: [PATCH] Update Gemini model options in Vertex AI section - Removed outdated model options from the Gemini 2.0 optgroup in index.html. - Added 'gemini-2.0-flash-preview-image-generation' to the image generation models in chat-completions.js for improved functionality. --- public/index.html | 34 +--------------------- src/endpoints/backends/chat-completions.js | 1 + 2 files changed, 2 insertions(+), 33 deletions(-) diff --git a/public/index.html b/public/index.html index 3835913a8..74f88ef3e 100644 --- a/public/index.html +++ b/public/index.html @@ -3328,43 +3328,11 @@ - - - diff --git a/src/endpoints/backends/chat-completions.js b/src/endpoints/backends/chat-completions.js index ec7a6d6c7..e7b2979f8 100644 --- a/src/endpoints/backends/chat-completions.js +++ b/src/endpoints/backends/chat-completions.js @@ -408,6 +408,7 @@ async function sendMakerSuiteRequest(request, response) { const imageGenerationModels = [ 'gemini-2.0-flash-exp', 'gemini-2.0-flash-exp-image-generation', + 'gemini-2.0-flash-preview-image-generation', ]; // These models do not support setting the threshold to OFF at all.