Skip to content

Commit 4ed2cd7

Browse files
authored
Claude -> Vertex (#5108)
1 parent a392af1 commit 4ed2cd7

File tree

9 files changed

+59
-40
lines changed

9 files changed

+59
-40
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const endpoints = {
77
provider: "anthropic",
88
author: "anthropic",
99
providerModelId: "claude-3-5-haiku-20241022",
10+
priority: 3,
1011
pricing: [
1112
{
1213
threshold: 0,
@@ -43,6 +44,7 @@ export const endpoints = {
4344
author: "anthropic",
4445
providerModelId: "claude-3-5-haiku@20241022",
4546
crossRegion: false,
47+
priority: 2,
4648
pricing: [
4749
{
4850
threshold: 0,
@@ -78,6 +80,7 @@ export const endpoints = {
7880
providerModelId: "anthropic.claude-3-5-haiku-20241022-v1:0",
7981
version: "20241022",
8082
crossRegion: true,
83+
priority: 3,
8184
pricing: [
8285
{
8386
threshold: 0,
@@ -130,7 +133,7 @@ export const endpoints = {
130133
"tool_choice",
131134
],
132135
ptbEnabled: true,
133-
priority: 3,
136+
priority: 100,
134137
endpointConfigs: {
135138
"*": {},
136139
},

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const endpoints = {
77
providerModelId: "claude-3-5-sonnet-20241022",
88
provider: "anthropic",
99
author: "anthropic",
10+
priority: 3,
1011
pricing: [
1112
{
1213
threshold: 0,
@@ -44,6 +45,7 @@ export const endpoints = {
4445
author: "anthropic",
4546
version: "vertex-2023-10-16",
4647
crossRegion: true,
48+
priority: 2,
4749
pricing: [
4850
{
4951
threshold: 0,
@@ -81,6 +83,7 @@ export const endpoints = {
8183
providerModelId: "anthropic.claude-3-5-sonnet-20241022-v2:0",
8284
version: "20241022",
8385
crossRegion: true,
86+
priority: 3,
8487
pricing: [
8588
{
8689
threshold: 0,
@@ -133,7 +136,7 @@ export const endpoints = {
133136
"tool_choice",
134137
],
135138
ptbEnabled: true,
136-
priority: 3,
139+
priority: 100,
137140
endpointConfigs: {
138141
"*": {},
139142
},

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const endpoints = {
88
author: "anthropic",
99
providerModelId: "claude-3-7-sonnet-20250219",
1010
version: "20250219",
11+
priority: 3,
1112
pricing: [
1213
{
1314
threshold: 0,
@@ -46,6 +47,7 @@ export const endpoints = {
4647
providerModelId: "claude-3-7-sonnet@20250219",
4748
version: "vertex-2023-10-16",
4849
crossRegion: true,
50+
priority: 2,
4951
pricing: [
5052
{
5153
threshold: 0,
@@ -81,6 +83,7 @@ export const endpoints = {
8183
providerModelId: "anthropic.claude-3-7-sonnet-20250219-v1:0",
8284
version: "20250219",
8385
crossRegion: true,
86+
priority: 3,
8487
pricing: [
8588
{
8689
threshold: 0,
@@ -133,7 +136,7 @@ export const endpoints = {
133136
"tool_choice",
134137
],
135138
ptbEnabled: true,
136-
priority: 3,
139+
priority: 100,
137140
endpointConfigs: {
138141
"*": {},
139142
},
@@ -164,6 +167,7 @@ export const endpoints = {
164167
"tool_choice",
165168
],
166169
ptbEnabled: true,
170+
priority: 3,
167171
endpointConfigs: {
168172
"*": {},
169173
},

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const endpoints = {
77
provider: "anthropic",
88
author: "anthropic",
99
providerModelId: "claude-haiku-4-5-20251001",
10+
priority: 3,
1011
pricing: [
1112
{
1213
threshold: 0,
@@ -43,6 +44,7 @@ export const endpoints = {
4344
author: "anthropic",
4445
providerModelId: "claude-haiku-4-5@20251001",
4546
crossRegion: false,
47+
priority: 2,
4648
pricing: [
4749
{
4850
threshold: 0,
@@ -78,6 +80,7 @@ export const endpoints = {
7880
providerModelId: "anthropic.claude-haiku-4-5-20251001-v1:0",
7981
version: "20251001",
8082
crossRegion: true,
83+
priority: 3,
8184
pricing: [
8285
{
8386
threshold: 0,
@@ -130,7 +133,7 @@ export const endpoints = {
130133
"tool_choice",
131134
],
132135
ptbEnabled: true,
133-
priority: 3,
136+
priority: 100,
134137
endpointConfigs: {
135138
"*": {},
136139
},

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const endpoints = {
88
provider: "anthropic",
99
author: "anthropic",
1010
version: "20250929",
11+
priority: 3,
1112
pricing: [
1213
{
1314
threshold: 0,
@@ -50,6 +51,7 @@ export const endpoints = {
5051
version: "vertex-2023-10-16",
5152
ptbEnabled: true,
5253
crossRegion: true,
54+
priority: 2,
5355
pricing: [
5456
{
5557
threshold: 0,
@@ -90,6 +92,7 @@ export const endpoints = {
9092
providerModelId: "anthropic.claude-sonnet-4-5-20250929-v1:0",
9193
version: "20250929",
9294
crossRegion: true,
95+
priority: 3,
9396
pricing: [
9497
{
9598
threshold: 0,
@@ -148,7 +151,7 @@ export const endpoints = {
148151
"top_k",
149152
],
150153
ptbEnabled: true,
151-
priority: 3,
154+
priority: 100,
152155
endpointConfigs: {
153156
"*": {},
154157
},

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const endpoints = {
88
provider: "anthropic",
99
author: "anthropic",
1010
version: "20250805",
11+
priority: 3,
1112
pricing: [
1213
{
1314
threshold: 0,
@@ -47,6 +48,7 @@ export const endpoints = {
4748
version: "vertex-2023-10-16",
4849
ptbEnabled: true,
4950
crossRegion: true,
51+
priority: 2,
5052
pricing: [
5153
{
5254
threshold: 0,
@@ -83,6 +85,7 @@ export const endpoints = {
8385
providerModelId: "anthropic.claude-opus-4-1-20250805-v1:0",
8486
version: "20250805",
8587
crossRegion: true,
88+
priority: 3,
8689
pricing: [
8790
{
8891
threshold: 0,
@@ -138,7 +141,7 @@ export const endpoints = {
138141
"top_k",
139142
],
140143
ptbEnabled: true,
141-
priority: 3,
144+
priority: 100,
142145
endpointConfigs: {
143146
"*": {},
144147
},

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const endpoints = {
88
provider: "anthropic",
99
author: "anthropic",
1010
version: "20250514",
11+
priority: 3,
1112
pricing: [
1213
{
1314
threshold: 0,
@@ -47,6 +48,7 @@ export const endpoints = {
4748
version: "vertex-2023-10-16",
4849
ptbEnabled: true,
4950
crossRegion: true,
51+
priority: 2,
5052
pricing: [
5153
{
5254
threshold: 0,
@@ -83,6 +85,7 @@ export const endpoints = {
8385
providerModelId: "anthropic.claude-opus-4-20250514-v1:0",
8486
version: "20250514",
8587
crossRegion: true,
88+
priority: 3,
8689
pricing: [
8790
{
8891
threshold: 0,
@@ -138,7 +141,7 @@ export const endpoints = {
138141
"top_k",
139142
],
140143
ptbEnabled: true,
141-
priority: 3,
144+
priority: 100,
142145
endpointConfigs: {
143146
"*": {},
144147
},

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const endpoints = {
88
provider: "anthropic",
99
author: "anthropic",
1010
version: "20250514",
11+
priority: 3,
1112
pricing: [
1213
{
1314
threshold: 0,
@@ -53,6 +54,7 @@ export const endpoints = {
5354
version: "vertex-2023-10-16",
5455
ptbEnabled: true,
5556
crossRegion: true,
57+
priority: 2,
5658
pricing: [
5759
{
5860
threshold: 0,
@@ -95,6 +97,7 @@ export const endpoints = {
9597
providerModelId: "anthropic.claude-sonnet-4-20250514-v1:0",
9698
version: "20250514",
9799
crossRegion: true,
100+
priority: 3,
98101
pricing: [
99102
{
100103
threshold: 0,
@@ -156,7 +159,7 @@ export const endpoints = {
156159
"top_k",
157160
],
158161
ptbEnabled: true,
159-
priority: 3,
162+
priority: 100,
160163
endpointConfigs: {
161164
"*": {},
162165
},

0 commit comments

Comments
 (0)