From a33e3971d926c8142b160a7a33a7df6c1d55f4ba Mon Sep 17 00:00:00 2001 From: Chen Tao <70054568+eeee0717@users.noreply.github.com> Date: Mon, 13 Oct 2025 17:39:08 +0800 Subject: [PATCH] fix: support gemini-2.5-image-flash (#10683) --- src/renderer/src/config/models/vision.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/config/models/vision.ts b/src/renderer/src/config/models/vision.ts index a9730d25cf..cd09e6e34b 100644 --- a/src/renderer/src/config/models/vision.ts +++ b/src/renderer/src/config/models/vision.ts @@ -82,14 +82,14 @@ export const IMAGE_ENHANCEMENT_MODELS = [ 'grok-2-image(?:-[\\w-]+)?', 'qwen-image-edit', 'gpt-image-1', - 'gemini-2.5-flash-image-preview', + 'gemini-2.5-flash-image', 'gemini-2.0-flash-preview-image-generation' ] const IMAGE_ENHANCEMENT_MODELS_REGEX = new RegExp(IMAGE_ENHANCEMENT_MODELS.join('|'), 'i') // Models that should auto-enable image generation button when selected -export const AUTO_ENABLE_IMAGE_MODELS = ['gemini-2.5-flash-image-preview', ...DEDICATED_IMAGE_MODELS] +export const AUTO_ENABLE_IMAGE_MODELS = ['gemini-2.5-flash-image', ...DEDICATED_IMAGE_MODELS] export const OPENAI_TOOL_USE_IMAGE_GENERATION_MODELS = [ 'o3', @@ -107,7 +107,7 @@ export const GENERATE_IMAGE_MODELS = [ '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', + 'gemini-2.5-flash-image', ...DEDICATED_IMAGE_MODELS ]