Skip to content

Commit efc428a

Browse files
committed
Adds Gemini 2.5 Flash Preview model (#4235)
1 parent f8e17bc commit efc428a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1010

1111
- Adds the ability to search for GitHub Enterprise and GitLab Self-Managed pull requests by URL in the main step of Launchpad
1212
- Adds OpenRouter support for GitLens' AI features ([#3906](https://github.com/gitkraken/vscode-gitlens/issues/3906))
13-
- Adds OpenAI GPT-4.1, GPT-4.1 mini, GPT-4.1 nano, o4 mini, and o3 models for GitLens' AI features ([#4235](https://github.com/gitkraken/vscode-gitlens/issues/4235))
13+
- Adds Google Gemini 2.5 Flash (Preview) model, and OpenAI GPT-4.1, GPT-4.1 mini, GPT-4.1 nano, o4 mini, and o3 models for GitLens' AI features ([#4235](https://github.com/gitkraken/vscode-gitlens/issues/4235))
1414
- Adds _Open File at Revision from Remote_ command to open the specific file revision from a remote file URL
1515

1616
### Changed

src/plus/ai/geminiProvider.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,22 @@ import { OpenAICompatibleProvider } from './openAICompatibleProvider';
66

77
type GeminiModel = AIModel<typeof provider.id>;
88
const models: GeminiModel[] = [
9+
{
10+
id: 'gemini-2.5-flash-preview-04-17',
11+
name: 'Gemini 2.5 Flash (Preview)',
12+
maxTokens: { input: 1048576, output: 65536 },
13+
provider: provider,
14+
},
915
{
1016
id: 'gemini-2.5-pro-preview-03-25',
1117
name: 'Gemini 2.5 Pro (Preview)',
12-
maxTokens: { input: 1000000, output: 64000 },
18+
maxTokens: { input: 1048576, output: 65536 },
1319
provider: provider,
1420
},
1521
{
1622
id: 'gemini-2.5-pro-exp-03-25',
1723
name: 'Gemini 2.5 Pro (Experimental)',
18-
maxTokens: { input: 1000000, output: 64000 },
24+
maxTokens: { input: 1048576, output: 65536 },
1925
provider: provider,
2026
hidden: true,
2127
},

0 commit comments

Comments
 (0)