Skip to content

Commit 6008b2a

Browse files
committed
feat(gemini): gemini-3.5-flash support
1 parent 9d022d4 commit 6008b2a

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

packages/types/src/providers/gemini.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ export type GeminiModelId = keyof typeof geminiModels
66
export const geminiDefaultModelId: GeminiModelId = "gemini-3.1-pro-preview"
77

88
export const geminiModels = {
9+
"gemini-3.5-flash": {
10+
maxTokens: 65_536,
11+
contextWindow: 1_048_576,
12+
supportsImages: true,
13+
supportsPromptCache: true,
14+
supportsReasoningEffort: ["minimal", "low", "medium", "high"],
15+
reasoningEffort: "medium",
16+
inputPrice: 1.5,
17+
outputPrice: 9,
18+
cacheReadsPrice: 0.15,
19+
cacheWritesPrice: 0.083,
20+
supportsReasoningBudget: false,
21+
},
922
"gemini-3.1-pro-preview": {
1023
maxTokens: 65_536,
1124
contextWindow: 1_048_576,

packages/types/src/providers/vertex.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ export type VertexModelId = keyof typeof vertexModels
66
export const vertexDefaultModelId: VertexModelId = "claude-sonnet-4-5@20250929"
77

88
export const vertexModels = {
9+
"gemini-3.5-flash": {
10+
maxTokens: 65_536,
11+
contextWindow: 1_048_576,
12+
supportsImages: true,
13+
supportsPromptCache: true,
14+
supportsReasoningEffort: ["minimal", "low", "medium", "high"],
15+
reasoningEffort: "medium",
16+
inputPrice: 1.5,
17+
outputPrice: 9,
18+
cacheReadsPrice: 0.15,
19+
cacheWritesPrice: 0.083,
20+
},
921
"gemini-3.1-pro-preview": {
1022
maxTokens: 65_536,
1123
contextWindow: 1_048_576,

0 commit comments

Comments
 (0)