Skip to content

Commit 8791fa7

Browse files
authored
feat(cost): add Novita endpoints for Gemini 3 preview models (#5580)
1 parent e922884 commit 8791fa7

File tree

2 files changed

+213
-7
lines changed

2 files changed

+213
-7
lines changed

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

Lines changed: 177 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,70 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
10611061
],
10621062
},
10631063
},
1064+
"anthropic/claude-4.6-sonnet": {
1065+
"claude-4.6-sonnet:anthropic": {
1066+
"context": 1000000,
1067+
"crossRegion": false,
1068+
"maxTokens": 64000,
1069+
"modelId": "claude-sonnet-4-6",
1070+
"parameters": [
1071+
"include_reasoning",
1072+
"max_tokens",
1073+
"reasoning",
1074+
"stop",
1075+
"temperature",
1076+
"tool_choice",
1077+
"tools",
1078+
],
1079+
"provider": "anthropic",
1080+
"ptbEnabled": true,
1081+
"regions": [
1082+
"*",
1083+
],
1084+
},
1085+
"claude-4.6-sonnet:bedrock": {
1086+
"context": 1000000,
1087+
"crossRegion": true,
1088+
"maxTokens": 64000,
1089+
"modelId": "anthropic.claude-sonnet-4-6-20260217-v1:0",
1090+
"parameters": [
1091+
"include_reasoning",
1092+
"max_tokens",
1093+
"reasoning",
1094+
"stop",
1095+
"temperature",
1096+
"tool_choice",
1097+
"tools",
1098+
"top_k",
1099+
"top_p",
1100+
],
1101+
"provider": "bedrock",
1102+
"ptbEnabled": true,
1103+
"regions": [
1104+
"us-east-1",
1105+
],
1106+
},
1107+
"claude-4.6-sonnet:vertex": {
1108+
"context": 1000000,
1109+
"crossRegion": true,
1110+
"maxTokens": 64000,
1111+
"modelId": "claude-sonnet-4-6@20260217",
1112+
"parameters": [
1113+
"include_reasoning",
1114+
"max_tokens",
1115+
"reasoning",
1116+
"stop",
1117+
"temperature",
1118+
"tool_choice",
1119+
"tools",
1120+
],
1121+
"provider": "vertex",
1122+
"ptbEnabled": true,
1123+
"regions": [
1124+
"global",
1125+
],
1126+
},
1127+
},
10641128
"anthropic/claude-haiku-4-5-20251001": {
10651129
"claude-haiku-4-5-20251001:anthropic": {
10661130
"context": 200000,
@@ -2420,6 +2484,30 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
24202484
"*",
24212485
],
24222486
},
2487+
"gemini-3-pro-preview:helicone": {
2488+
"context": 1048576,
2489+
"crossRegion": false,
2490+
"maxTokens": 65536,
2491+
"modelId": "pa/gemini-3-pro-preview",
2492+
"parameters": [
2493+
"include_reasoning",
2494+
"max_tokens",
2495+
"reasoning",
2496+
"response_format",
2497+
"seed",
2498+
"stop",
2499+
"structured_outputs",
2500+
"temperature",
2501+
"tool_choice",
2502+
"tools",
2503+
"top_p",
2504+
],
2505+
"provider": "helicone",
2506+
"ptbEnabled": true,
2507+
"regions": [
2508+
"*",
2509+
],
2510+
},
24232511
"gemini-3-pro-preview:openrouter": {
24242512
"context": 1048576,
24252513
"crossRegion": false,
@@ -6862,6 +6950,11 @@ exports[`Registry Snapshots model coverage snapshot 1`] = `
68626950
"openrouter",
68636951
"vertex",
68646952
],
6953+
"anthropic/claude-4.6-sonnet": [
6954+
"anthropic",
6955+
"bedrock",
6956+
"vertex",
6957+
],
68656958
"anthropic/claude-haiku-4-5-20251001": [
68666959
"anthropic",
68676960
"bedrock",
@@ -6951,6 +7044,7 @@ exports[`Registry Snapshots model coverage snapshot 1`] = `
69517044
],
69527045
"google/gemini-3": [
69537046
"google-ai-studio",
7047+
"helicone",
69547048
"openrouter",
69557049
"vertex",
69567050
],
@@ -7707,6 +7801,60 @@ exports[`Registry Snapshots pricing snapshot 1`] = `
77077801
},
77087802
],
77097803
},
7804+
"anthropic/claude-4.6-sonnet": {
7805+
"anthropic": [
7806+
{
7807+
"cacheMultipliers": {
7808+
"cachedInput": 0.1,
7809+
"write1h": 2,
7810+
"write5m": 1.25,
7811+
},
7812+
"input": 0.000003,
7813+
"output": 0.000015,
7814+
"threshold": 0,
7815+
"web_search": 0.01,
7816+
},
7817+
{
7818+
"input": 0.000006,
7819+
"output": 0.0000225,
7820+
"threshold": 200000,
7821+
},
7822+
],
7823+
"bedrock": [
7824+
{
7825+
"cacheMultipliers": {
7826+
"cachedInput": 0.1,
7827+
"write5m": 1.25,
7828+
},
7829+
"input": 0.000003,
7830+
"output": 0.000015,
7831+
"threshold": 0,
7832+
"web_search": 0.01,
7833+
},
7834+
{
7835+
"input": 0.000006,
7836+
"output": 0.0000225,
7837+
"threshold": 200000,
7838+
},
7839+
],
7840+
"vertex": [
7841+
{
7842+
"cacheMultipliers": {
7843+
"cachedInput": 0.1,
7844+
"write5m": 1.25,
7845+
},
7846+
"input": 0.000003,
7847+
"output": 0.000015,
7848+
"threshold": 0,
7849+
"web_search": 0.01,
7850+
},
7851+
{
7852+
"input": 0.000006,
7853+
"output": 0.0000225,
7854+
"threshold": 200000,
7855+
},
7856+
],
7857+
},
77107858
"anthropic/claude-haiku-4-5-20251001": {
77117859
"anthropic": [
77127860
{
@@ -8408,6 +8556,18 @@ exports[`Registry Snapshots pricing snapshot 1`] = `
84088556
"threshold": 200000,
84098557
},
84108558
],
8559+
"helicone": [
8560+
{
8561+
"input": 0.000002,
8562+
"output": 0.000012,
8563+
"threshold": 0,
8564+
},
8565+
{
8566+
"input": 0.000004,
8567+
"output": 0.000018,
8568+
"threshold": 200000,
8569+
},
8570+
],
84118571
"openrouter": [
84128572
{
84138573
"input": 0.00000211,
@@ -9266,6 +9426,14 @@ exports[`Registry Snapshots verify registry state 1`] = `
92669426
"vertex",
92679427
],
92689428
},
9429+
{
9430+
"model": "claude-4.6-sonnet",
9431+
"providers": [
9432+
"anthropic",
9433+
"bedrock",
9434+
"vertex",
9435+
],
9436+
},
92699437
{
92709438
"model": "claude-haiku-4-5-20251001",
92719439
"providers": [
@@ -9437,6 +9605,7 @@ exports[`Registry Snapshots verify registry state 1`] = `
94379605
"model": "gemini-3-pro-preview",
94389606
"providers": [
94399607
"google-ai-studio",
9608+
"helicone",
94409609
"openrouter",
94419610
"vertex",
94429611
],
@@ -10022,7 +10191,7 @@ exports[`Registry Snapshots verify registry state 1`] = `
1002210191
],
1002310192
"providerBreakdown": [
1002410193
{
10025-
"modelCount": 14,
10194+
"modelCount": 15,
1002610195
"provider": "anthropic",
1002710196
},
1002810197
{
@@ -10034,7 +10203,7 @@ exports[`Registry Snapshots verify registry state 1`] = `
1003410203
"provider": "baseten",
1003510204
},
1003610205
{
10037-
"modelCount": 13,
10206+
"modelCount": 14,
1003810207
"provider": "bedrock",
1003910208
},
1004010209
{
@@ -10070,7 +10239,7 @@ exports[`Registry Snapshots verify registry state 1`] = `
1007010239
"provider": "groq",
1007110240
},
1007210241
{
10073-
"modelCount": 46,
10242+
"modelCount": 47,
1007410243
"provider": "helicone",
1007510244
},
1007610245
{
@@ -10098,7 +10267,7 @@ exports[`Registry Snapshots verify registry state 1`] = `
1009810267
"provider": "perplexity",
1009910268
},
1010010269
{
10101-
"modelCount": 20,
10270+
"modelCount": 21,
1010210271
"provider": "vertex",
1010310272
},
1010410273
{
@@ -10116,6 +10285,7 @@ exports[`Registry Snapshots verify registry state 1`] = `
1011610285
"claude-4.5-opus",
1011710286
"claude-4.5-sonnet",
1011810287
"claude-4.6-opus",
10288+
"claude-4.6-sonnet",
1011910289
"claude-haiku-4-5-20251001",
1012010290
"claude-opus-4",
1012110291
"claude-opus-4-1",
@@ -10220,9 +10390,9 @@ exports[`Registry Snapshots verify registry state 1`] = `
1022010390
"claude-3.5-haiku:anthropic:*",
1022110391
],
1022210392
"totalArchivedConfigs": 0,
10223-
"totalEndpoints": 307,
10224-
"totalModelProviderConfigs": 307,
10225-
"totalModelsWithPtb": 103,
10393+
"totalEndpoints": 311,
10394+
"totalModelProviderConfigs": 311,
10395+
"totalModelsWithPtb": 104,
1022610396
"totalProviders": 21,
1022710397
}
1022810398
`;

packages/cost/models/authors/google/gemini-3/endpoints.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,42 @@ export const endpoints = {
125125
"*": {},
126126
},
127127
},
128+
"gemini-3-pro-preview:helicone": {
129+
provider: "helicone",
130+
author: "google",
131+
providerModelId: "pa/gemini-3-pro-preview",
132+
pricing: [
133+
{
134+
threshold: 0,
135+
input: 0.000002, // $2/1M tokens (same as Google)
136+
output: 0.000012, // $12/1M tokens (same as Google)
137+
},
138+
{
139+
threshold: 200000,
140+
input: 0.000004, // $4/1M tokens (over 200K context)
141+
output: 0.000018, // $18/1M tokens (over 200K context)
142+
},
143+
],
144+
contextLength: 1_048_576,
145+
maxCompletionTokens: 65_536,
146+
supportedParameters: [
147+
"include_reasoning",
148+
"max_tokens",
149+
"reasoning",
150+
"response_format",
151+
"seed",
152+
"stop",
153+
"structured_outputs",
154+
"temperature",
155+
"tool_choice",
156+
"tools",
157+
"top_p",
158+
],
159+
ptbEnabled: true,
160+
endpointConfigs: {
161+
"*": {},
162+
},
163+
},
128164
} satisfies Partial<
129165
Record<`${Gemini3ProPreviewModelName}:${ModelProviderName}`, ModelProviderConfig>
130166
>;

0 commit comments

Comments
 (0)