From 7918fc2844be92571695c514ada6b879f0639a61 Mon Sep 17 00:00:00 2001 From: cagedbird043 Date: Wed, 25 Feb 2026 15:07:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AF=B9=E9=BD=90=20Gemini=20v1beta=20?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=A8=A1=E5=9E=8B=E4=B8=8E=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/keys/UseKeyModal.vue | 89 ++++++++++++++++++-- 1 file changed, 84 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/keys/UseKeyModal.vue b/frontend/src/components/keys/UseKeyModal.vue index 7b0cbc68..43edafb3 100644 --- a/frontend/src/components/keys/UseKeyModal.vue +++ b/frontend/src/components/keys/UseKeyModal.vue @@ -675,11 +675,90 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin } } const geminiModels = { - 'gemini-2.0-flash': { name: 'Gemini 2.0 Flash' }, - 'gemini-2.5-flash': { name: 'Gemini 2.5 Flash' }, - 'gemini-2.5-pro': { name: 'Gemini 2.5 Pro' }, - 'gemini-3-flash-preview': { name: 'Gemini 3 Flash Preview' }, - 'gemini-3-pro-preview': { name: 'Gemini 3 Pro Preview' } + 'gemini-2.0-flash': { + name: 'Gemini 2.0 Flash', + limit: { + context: 1048576, + output: 65536 + }, + modalities: { + input: ['text', 'image', 'pdf'], + output: ['text'] + } + }, + 'gemini-2.5-flash': { + name: 'Gemini 2.5 Flash', + limit: { + context: 1048576, + output: 65536 + }, + modalities: { + input: ['text', 'image', 'pdf'], + output: ['text'] + } + }, + 'gemini-2.5-pro': { + name: 'Gemini 2.5 Pro', + limit: { + context: 2097152, + output: 65536 + }, + modalities: { + input: ['text', 'image', 'pdf'], + output: ['text'] + }, + options: { + thinking: { + budgetTokens: 24576, + type: 'enabled' + } + } + }, + 'gemini-3-flash-preview': { + name: 'Gemini 3 Flash Preview', + limit: { + context: 1048576, + output: 65536 + }, + modalities: { + input: ['text', 'image', 'pdf'], + output: ['text'] + } + }, + 'gemini-3-pro-preview': { + name: 'Gemini 3 Pro Preview', + limit: { + context: 1048576, + output: 65536 + }, + modalities: { + input: ['text', 'image', 'pdf'], + output: ['text'] + }, + options: { + thinking: { + budgetTokens: 24576, + type: 'enabled' + } + } + }, + 'gemini-3.1-pro-preview': { + name: 'Gemini 3.1 Pro Preview', + limit: { + context: 1048576, + output: 65536 + }, + modalities: { + input: ['text', 'image', 'pdf'], + output: ['text'] + }, + options: { + thinking: { + budgetTokens: 24576, + type: 'enabled' + } + } + } } const antigravityGeminiModels = {