Skip to content

Commit dbc143e

Browse files
authored
feat: add Helicone gateway endpoint for Gemini 2.5 Flash (#5584)
1 parent 1439dd4 commit dbc143e

File tree

2 files changed

+67
-3
lines changed

2 files changed

+67
-3
lines changed

packages/__tests__/cost/__snapshots__/registrySnapshots.test.ts.snap

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2291,6 +2291,30 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
22912291
"*",
22922292
],
22932293
},
2294+
"gemini-2.5-flash:helicone": {
2295+
"context": 1048576,
2296+
"crossRegion": false,
2297+
"maxTokens": 65535,
2298+
"modelId": "pa/gmn-2.5-fls-lt-pw-06-17",
2299+
"parameters": [
2300+
"include_reasoning",
2301+
"max_tokens",
2302+
"reasoning",
2303+
"response_format",
2304+
"seed",
2305+
"stop",
2306+
"structured_outputs",
2307+
"temperature",
2308+
"tool_choice",
2309+
"tools",
2310+
"top_p",
2311+
],
2312+
"provider": "helicone",
2313+
"ptbEnabled": true,
2314+
"regions": [
2315+
"*",
2316+
],
2317+
},
22942318
"gemini-2.5-flash:openrouter": {
22952319
"context": 1048576,
22962320
"crossRegion": false,
@@ -7074,6 +7098,7 @@ exports[`Registry Snapshots model coverage snapshot 1`] = `
70747098
],
70757099
"google/gemini-2.5-flash": [
70767100
"google-ai-studio",
7101+
"helicone",
70777102
"openrouter",
70787103
"vertex",
70797104
],
@@ -8494,6 +8519,13 @@ exports[`Registry Snapshots pricing snapshot 1`] = `
84948519
"threshold": 0,
84958520
},
84968521
],
8522+
"helicone": [
8523+
{
8524+
"input": 3e-7,
8525+
"output": 0.0000025,
8526+
"threshold": 0,
8527+
},
8528+
],
84978529
"openrouter": [
84988530
{
84998531
"input": 3.2e-7,
@@ -9636,6 +9668,7 @@ exports[`Registry Snapshots verify registry state 1`] = `
96369668
"model": "gemini-2.5-flash",
96379669
"providers": [
96389670
"google-ai-studio",
9671+
"helicone",
96399672
"openrouter",
96409673
"vertex",
96419674
],
@@ -10311,7 +10344,7 @@ exports[`Registry Snapshots verify registry state 1`] = `
1031110344
"provider": "groq",
1031210345
},
1031310346
{
10314-
"modelCount": 49,
10347+
"modelCount": 50,
1031510348
"provider": "helicone",
1031610349
},
1031710350
{
@@ -10462,8 +10495,8 @@ exports[`Registry Snapshots verify registry state 1`] = `
1046210495
"claude-3.5-haiku:anthropic:*",
1046310496
],
1046410497
"totalArchivedConfigs": 0,
10465-
"totalEndpoints": 313,
10466-
"totalModelProviderConfigs": 313,
10498+
"totalEndpoints": 314,
10499+
"totalModelProviderConfigs": 314,
1046710500
"totalModelsWithPtb": 104,
1046810501
"totalProviders": 21,
1046910502
}

packages/cost/models/authors/google/gemini-2.5-flash/endpoints.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,37 @@ export const endpoints = {
120120
"*": {},
121121
},
122122
},
123+
"gemini-2.5-flash:helicone": {
124+
provider: "helicone",
125+
author: "google",
126+
providerModelId: "pa/gmn-2.5-fls-lt-pw-06-17",
127+
pricing: [
128+
{
129+
threshold: 0,
130+
input: 0.0000003, // $0.30/1M tokens (same as Google)
131+
output: 0.0000025, // $2.50/1M tokens (same as Google)
132+
},
133+
],
134+
contextLength: 1_048_576,
135+
maxCompletionTokens: 65_535,
136+
supportedParameters: [
137+
"include_reasoning",
138+
"max_tokens",
139+
"reasoning",
140+
"response_format",
141+
"seed",
142+
"stop",
143+
"structured_outputs",
144+
"temperature",
145+
"tool_choice",
146+
"tools",
147+
"top_p",
148+
],
149+
ptbEnabled: true,
150+
endpointConfigs: {
151+
"*": {},
152+
},
153+
},
123154
} satisfies Partial<
124155
Record<`${Gemini25FlashModelName}:${ModelProviderName}`, ModelProviderConfig>
125156
>;

0 commit comments

Comments
 (0)