Skip to content

Commit f36671b

Browse files
authored
Anthropic w/ Helicone (#5088)
1 parent 821652f commit f36671b

File tree

20 files changed

+1403
-821
lines changed

20 files changed

+1403
-821
lines changed

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

Lines changed: 590 additions & 242 deletions
Large diffs are not rendered by default.

packages/cost/models/authors/anthropic/claude-3.5-haiku/endpoints.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,40 @@ export const endpoints = {
135135
"*": {},
136136
},
137137
},
138+
"claude-3.5-haiku:helicone": {
139+
provider: "helicone",
140+
author: "anthropic",
141+
providerModelId: "pa/cd-3-5-hk-20241022",
142+
pricing: [
143+
{
144+
threshold: 0,
145+
input: 0.0000008,
146+
output: 0.000004,
147+
cacheMultipliers: {
148+
cachedInput: 0.1,
149+
write5m: 1.25,
150+
write1h: 2.0,
151+
},
152+
},
153+
],
154+
contextLength: 200000,
155+
maxCompletionTokens: 8192,
156+
supportedParameters: [
157+
"tools",
158+
"tool_choice",
159+
"max_tokens",
160+
"temperature",
161+
"top_p",
162+
"top_k",
163+
"stop",
164+
],
165+
ptbEnabled: true,
166+
requireExplicitRouting: true,
167+
endpointConfigs: {
168+
"*": {},
169+
},
170+
responseFormat: "ANTHROPIC",
171+
},
138172
} satisfies Partial<
139173
Record<`${Claude35HaikuModelName}:${ModelProviderName}`, ModelProviderConfig>
140174
>;

packages/cost/models/authors/anthropic/claude-3.5-sonnet-v2/endpoints.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,40 @@ export const endpoints = {
138138
"*": {},
139139
},
140140
},
141+
"claude-3.5-sonnet-v2:helicone": {
142+
provider: "helicone",
143+
author: "anthropic",
144+
providerModelId: "pa/cd-3-5-st-20241022",
145+
pricing: [
146+
{
147+
threshold: 0,
148+
input: 0.000003,
149+
output: 0.000015,
150+
cacheMultipliers: {
151+
cachedInput: 0.1,
152+
write5m: 1.25,
153+
write1h: 2.0,
154+
},
155+
},
156+
],
157+
contextLength: 200000,
158+
maxCompletionTokens: 8192,
159+
supportedParameters: [
160+
"tools",
161+
"tool_choice",
162+
"max_tokens",
163+
"temperature",
164+
"top_p",
165+
"top_k",
166+
"stop",
167+
],
168+
ptbEnabled: true,
169+
requireExplicitRouting: true,
170+
responseFormat: "ANTHROPIC",
171+
endpointConfigs: {
172+
"*": {},
173+
},
174+
},
141175
} satisfies Partial<
142176
Record<
143177
`${Claude35SonnetV2ModelName}:${ModelProviderName}`,

packages/cost/models/authors/anthropic/claude-3.7-sonnet/endpoints.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,41 @@ export const endpoints = {
168168
"*": {},
169169
},
170170
},
171+
"claude-3.7-sonnet:helicone": {
172+
provider: "helicone",
173+
author: "anthropic",
174+
providerModelId: "pa/cd-3-7-st-20250219",
175+
version: "20250219",
176+
pricing: [
177+
{
178+
threshold: 0,
179+
input: 0.000003,
180+
output: 0.000015,
181+
cacheMultipliers: {
182+
cachedInput: 0.1,
183+
write5m: 1.25,
184+
write1h: 2.0,
185+
},
186+
},
187+
],
188+
contextLength: 200_000,
189+
maxCompletionTokens: 64_000,
190+
supportedParameters: [
191+
"tools",
192+
"tool_choice",
193+
"max_tokens",
194+
"temperature",
195+
"top_p",
196+
"top_k",
197+
"stop",
198+
],
199+
ptbEnabled: true,
200+
requireExplicitRouting: true,
201+
responseFormat: "ANTHROPIC",
202+
endpointConfigs: {
203+
"*": {},
204+
},
205+
},
171206
} satisfies Partial<
172207
Record<`${Claude37SonnetModelName}:${ModelProviderName}`, ModelProviderConfig>
173208
>;

packages/cost/models/authors/anthropic/claude-4.5-haiku/endpoints.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,40 @@ export const endpoints = {
135135
"*": {},
136136
},
137137
},
138+
"claude-4.5-haiku:helicone": {
139+
provider: "helicone",
140+
author: "anthropic",
141+
providerModelId: "pa/claude-haiku-4-5-20251001",
142+
pricing: [
143+
{
144+
threshold: 0,
145+
input: 0.000001,
146+
output: 0.000005,
147+
cacheMultipliers: {
148+
cachedInput: 0.1,
149+
write5m: 1.25,
150+
write1h: 2.0,
151+
},
152+
},
153+
],
154+
contextLength: 200000,
155+
maxCompletionTokens: 8192,
156+
supportedParameters: [
157+
"tools",
158+
"tool_choice",
159+
"max_tokens",
160+
"temperature",
161+
"top_p",
162+
"top_k",
163+
"stop",
164+
],
165+
ptbEnabled: true,
166+
requireExplicitRouting: true,
167+
endpointConfigs: {
168+
"*": {},
169+
},
170+
responseFormat: "ANTHROPIC",
171+
},
138172
} satisfies Partial<
139173
Record<`${Claude45HaikuModelName}:${ModelProviderName}`, ModelProviderConfig>
140174
>;

packages/cost/models/authors/anthropic/claude-4.5-sonnet/endpoints.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,46 @@ export const endpoints = {
153153
"*": {},
154154
},
155155
},
156+
"claude-4.5-sonnet:helicone": {
157+
provider: "helicone",
158+
author: "anthropic",
159+
providerModelId: "pa/claude-sonnet-4-5-20250929",
160+
version: "20250929",
161+
pricing: [
162+
{
163+
threshold: 0,
164+
input: 0.000003,
165+
output: 0.000015,
166+
cacheMultipliers: {
167+
cachedInput: 0.1,
168+
write5m: 1.25,
169+
write1h: 2.0,
170+
},
171+
},
172+
{
173+
threshold: 200000,
174+
input: 0.000006,
175+
output: 0.0000225,
176+
},
177+
],
178+
contextLength: 200000,
179+
maxCompletionTokens: 64000,
180+
supportedParameters: [
181+
"max_tokens",
182+
"temperature",
183+
"stop",
184+
"reasoning",
185+
"include_reasoning",
186+
"tools",
187+
"tool_choice",
188+
],
189+
ptbEnabled: true,
190+
requireExplicitRouting: true,
191+
responseFormat: "ANTHROPIC",
192+
endpointConfigs: {
193+
"*": {},
194+
},
195+
},
156196
} satisfies Partial<
157197
Record<`${ClaudeSonnet45ModelName}:${ModelProviderName}`, ModelProviderConfig>
158198
>;

packages/cost/models/authors/anthropic/claude-opus-4-1/endpoints.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,41 @@ export const endpoints = {
143143
"*": {},
144144
},
145145
},
146+
"claude-opus-4-1:helicone": {
147+
provider: "helicone",
148+
author: "anthropic",
149+
providerModelId: "pa/claude-opus-4-1-20250805",
150+
version: "20250805",
151+
pricing: [
152+
{
153+
threshold: 0,
154+
input: 0.000015,
155+
output: 0.000075,
156+
cacheMultipliers: {
157+
cachedInput: 0.1,
158+
write5m: 1.25,
159+
write1h: 2.0,
160+
},
161+
},
162+
],
163+
contextLength: 200000,
164+
maxCompletionTokens: 32000,
165+
supportedParameters: [
166+
"max_tokens",
167+
"temperature",
168+
"stop",
169+
"reasoning",
170+
"include_reasoning",
171+
"tools",
172+
"tool_choice",
173+
],
174+
ptbEnabled: true,
175+
requireExplicitRouting: true,
176+
responseFormat: "ANTHROPIC",
177+
endpointConfigs: {
178+
"*": {},
179+
},
180+
},
146181
} satisfies Partial<
147182
Record<`${ClaudeOpus41ModelName}:${ModelProviderName}`, ModelProviderConfig>
148183
>;

packages/cost/models/authors/anthropic/claude-opus-4/endpoints.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,41 @@ export const endpoints = {
143143
"*": {},
144144
},
145145
},
146+
"claude-opus-4:helicone": {
147+
provider: "helicone",
148+
author: "anthropic",
149+
providerModelId: "pa/cd-op-4-20250514",
150+
version: "20250514",
151+
pricing: [
152+
{
153+
threshold: 0,
154+
input: 0.000015,
155+
output: 0.000075,
156+
cacheMultipliers: {
157+
cachedInput: 0.1,
158+
write5m: 1.25,
159+
write1h: 2.0,
160+
},
161+
},
162+
],
163+
contextLength: 200000,
164+
maxCompletionTokens: 32000,
165+
supportedParameters: [
166+
"max_tokens",
167+
"temperature",
168+
"stop",
169+
"reasoning",
170+
"include_reasoning",
171+
"tools",
172+
"tool_choice",
173+
],
174+
ptbEnabled: true,
175+
requireExplicitRouting: true,
176+
responseFormat: "ANTHROPIC",
177+
endpointConfigs: {
178+
"*": {},
179+
},
180+
},
146181
} satisfies Partial<
147182
Record<`${ClaudeOpus4ModelName}:${ModelProviderName}`, ModelProviderConfig>
148183
>;

packages/cost/models/authors/anthropic/claude-sonnet-4/endpoints.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,46 @@ export const endpoints = {
161161
"*": {},
162162
},
163163
},
164+
"claude-sonnet-4:helicone": {
165+
provider: "helicone",
166+
author: "anthropic",
167+
providerModelId: "pa/cd-st-4-20250514",
168+
version: "20250514",
169+
pricing: [
170+
{
171+
threshold: 0,
172+
input: 0.000003,
173+
output: 0.000015,
174+
cacheMultipliers: {
175+
cachedInput: 0.1,
176+
write5m: 1.25,
177+
write1h: 2.0,
178+
},
179+
},
180+
{
181+
threshold: 200000,
182+
input: 0.000006,
183+
output: 0.0000225,
184+
},
185+
],
186+
contextLength: 200000,
187+
maxCompletionTokens: 64000,
188+
supportedParameters: [
189+
"max_tokens",
190+
"temperature",
191+
"stop",
192+
"reasoning",
193+
"include_reasoning",
194+
"tools",
195+
"tool_choice",
196+
],
197+
ptbEnabled: true,
198+
requireExplicitRouting: true,
199+
responseFormat: "ANTHROPIC",
200+
endpointConfigs: {
201+
"*": {},
202+
},
203+
},
164204
} satisfies Partial<
165205
Record<`${ClaudeSonnet4ModelName}:${ModelProviderName}`, ModelProviderConfig>
166206
>;

0 commit comments

Comments
 (0)