From 88a0f095e872fa3e3416d26b65bb293bbf6967c1 Mon Sep 17 00:00:00 2001 From: hkfires <10558748+hkfires@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:31:41 +0800 Subject: [PATCH] chore(registry): disable gemini 2.5 flash image preview model --- .../registry/model_definitions_static_data.go | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/internal/registry/model_definitions_static_data.go b/internal/registry/model_definitions_static_data.go index b98843b9..b1a524fb 100644 --- a/internal/registry/model_definitions_static_data.go +++ b/internal/registry/model_definitions_static_data.go @@ -554,21 +554,21 @@ func GetAIStudioModels() []*ModelInfo { SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"}, Thinking: &ThinkingSupport{Min: 512, Max: 24576, ZeroAllowed: true, DynamicAllowed: true}, }, - { - ID: "gemini-2.5-flash-image-preview", - Object: "model", - Created: 1756166400, - OwnedBy: "google", - Type: "gemini", - Name: "models/gemini-2.5-flash-image-preview", - Version: "2.5", - DisplayName: "Gemini 2.5 Flash Image Preview", - Description: "State-of-the-art image generation and editing model.", - InputTokenLimit: 1048576, - OutputTokenLimit: 8192, - SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"}, - // image models don't support thinkingConfig; leave Thinking nil - }, + // { + // ID: "gemini-2.5-flash-image-preview", + // Object: "model", + // Created: 1756166400, + // OwnedBy: "google", + // Type: "gemini", + // Name: "models/gemini-2.5-flash-image-preview", + // Version: "2.5", + // DisplayName: "Gemini 2.5 Flash Image Preview", + // Description: "State-of-the-art image generation and editing model.", + // InputTokenLimit: 1048576, + // OutputTokenLimit: 8192, + // SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"}, + // // image models don't support thinkingConfig; leave Thinking nil + // }, { ID: "gemini-2.5-flash-image", Object: "model",