Skip to content

Commit d86d601

Browse files
authored
Add gemini 2.5 flash preview (#2720)
1 parent 471caff commit d86d601

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/shared/api.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,14 @@ export const vertexModels = {
485485
inputPrice: 0.15,
486486
outputPrice: 0.6,
487487
},
488+
"gemini-2.5-flash-preview-04-17": {
489+
maxTokens: 65_536,
490+
contextWindow: 1_048_576,
491+
supportsImages: true,
492+
supportsPromptCache: false,
493+
inputPrice: 0.15,
494+
outputPrice: 0.6,
495+
},
488496
"gemini-2.5-pro-preview-03-25": {
489497
maxTokens: 65_535,
490498
contextWindow: 1_048_576,
@@ -632,6 +640,14 @@ export const openAiModelInfoSaneDefaults: ModelInfo = {
632640
export type GeminiModelId = keyof typeof geminiModels
633641
export const geminiDefaultModelId: GeminiModelId = "gemini-2.0-flash-001"
634642
export const geminiModels = {
643+
"gemini-2.5-flash-preview-04-17": {
644+
maxTokens: 65_536,
645+
contextWindow: 1_048_576,
646+
supportsImages: true,
647+
supportsPromptCache: false,
648+
inputPrice: 0.15,
649+
outputPrice: 0.6,
650+
},
635651
"gemini-2.5-pro-exp-03-25": {
636652
maxTokens: 65_536,
637653
contextWindow: 1_048_576,

0 commit comments

Comments
 (0)