Skip to content

File tree

2 files changed

+88
-1
lines changed

2 files changed

+88
-1
lines changed

packages/types/src/providers/gemini.ts

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,67 @@ import type { ModelInfo } from "../model.js"
33
// https://ai.google.dev/gemini-api/docs/models/gemini
44
export type GeminiModelId = keyof typeof geminiModels
55

6-
export const geminiDefaultModelId: GeminiModelId = "gemini-3-pro-preview"
6+
export const geminiDefaultModelId: GeminiModelId = "gemini-3.1-pro-preview"
77

88
export const geminiModels = {
9+
"gemini-3.1-pro-preview": {
10+
maxTokens: 65_536,
11+
contextWindow: 1_048_576,
12+
supportsImages: true,
13+
supportsPromptCache: true,
14+
supportsReasoningEffort: ["low", "medium", "high"],
15+
reasoningEffort: "low",
16+
17+
supportsTemperature: true,
18+
defaultTemperature: 1,
19+
inputPrice: 4.0,
20+
outputPrice: 18.0,
21+
cacheReadsPrice: 0.4,
22+
cacheWritesPrice: 4.5,
23+
tiers: [
24+
{
25+
contextWindow: 200_000,
26+
inputPrice: 2.0,
27+
outputPrice: 12.0,
28+
cacheReadsPrice: 0.2,
29+
},
30+
{
31+
contextWindow: Infinity,
32+
inputPrice: 4.0,
33+
outputPrice: 18.0,
34+
cacheReadsPrice: 0.4,
35+
},
36+
],
37+
},
38+
"gemini-3.1-pro-preview-customtools": {
39+
maxTokens: 65_536,
40+
contextWindow: 1_048_576,
41+
supportsImages: true,
42+
supportsPromptCache: true,
43+
supportsReasoningEffort: ["low", "medium", "high"],
44+
reasoningEffort: "low",
45+
46+
supportsTemperature: true,
47+
defaultTemperature: 1,
48+
inputPrice: 4.0,
49+
outputPrice: 18.0,
50+
cacheReadsPrice: 0.4,
51+
cacheWritesPrice: 4.5,
52+
tiers: [
53+
{
54+
contextWindow: 200_000,
55+
inputPrice: 2.0,
56+
outputPrice: 12.0,
57+
cacheReadsPrice: 0.2,
58+
},
59+
{
60+
contextWindow: Infinity,
61+
inputPrice: 4.0,
62+
outputPrice: 18.0,
63+
cacheReadsPrice: 0.4,
64+
},
65+
],
66+
},
967
"gemini-3-pro-preview": {
1068
maxTokens: 65_536,
1169
contextWindow: 1_048_576,

packages/types/src/providers/vertex.ts

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

88
export const vertexModels = {
9+
"gemini-3.1-pro-preview": {
10+
maxTokens: 65_536,
11+
contextWindow: 1_048_576,
12+
supportsImages: true,
13+
supportsPromptCache: true,
14+
supportsReasoningEffort: ["low", "medium", "high"],
15+
reasoningEffort: "low",
16+
17+
supportsTemperature: true,
18+
defaultTemperature: 1,
19+
inputPrice: 4.0,
20+
outputPrice: 18.0,
21+
cacheReadsPrice: 0.4,
22+
cacheWritesPrice: 4.5,
23+
tiers: [
24+
{
25+
contextWindow: 200_000,
26+
inputPrice: 2.0,
27+
outputPrice: 12.0,
28+
cacheReadsPrice: 0.2,
29+
},
30+
{
31+
contextWindow: Infinity,
32+
inputPrice: 4.0,
33+
outputPrice: 18.0,
34+
cacheReadsPrice: 0.4,
35+
},
36+
],
37+
},
938
"gemini-3-pro-preview": {
1039
maxTokens: 65_536,
1140
contextWindow: 1_048_576,

0 commit comments

Comments
 (0)