From df777650ac2f25e11be55b7c5a2b961e2009ceb4 Mon Sep 17 00:00:00 2001 From: sheauhuu Date: Sat, 20 Dec 2025 20:05:20 +0800 Subject: [PATCH] feat: add gemini-3-flash-preview model definition in GetGeminiModels --- internal/registry/model_definitions.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/internal/registry/model_definitions.go b/internal/registry/model_definitions.go index fe0f85cb..67898bbc 100644 --- a/internal/registry/model_definitions.go +++ b/internal/registry/model_definitions.go @@ -162,6 +162,21 @@ func GetGeminiModels() []*ModelInfo { SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"}, Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"low", "high"}}, }, + { + ID: "gemini-3-flash-preview", + Object: "model", + Created: 1765929600, + OwnedBy: "google", + Type: "gemini", + Name: "models/gemini-3-flash-preview", + Version: "3.0", + DisplayName: "Gemini 3 Flash Preview", + Description: "Gemini 3 Flash Preview", + InputTokenLimit: 1048576, + OutputTokenLimit: 65536, + SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"}, + Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"minimal", "low", "medium", "high"}}, + }, { ID: "gemini-3-pro-image-preview", Object: "model",