Skip to content

Commit 19bc7d7

Browse files
fwangopencode
andcommitted
Rename cache fields and make them optional
- Rename inputCached/outputCached to cache_read/cache_write in schema - Make cache fields optional in ModelSchema - Remove cache fields from TOML files where value is $0 - Keep cache fields only when they have actual pricing values 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <[email protected]>
1 parent 7d78869 commit 19bc7d7

File tree

139 files changed

+101
-278
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+101
-278
lines changed

app/schemas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export const ModelSchema = z
1919
cost: z.object({
2020
input: z.number().min(0, "Input price cannot be negative"),
2121
output: z.number().min(0, "Output price cannot be negative"),
22-
inputCached: z.number().min(0, "Input cached price cannot be negative"),
23-
outputCached: z.number().min(0, "Output cached price cannot be negative"),
22+
cache_read: z.number().min(0, "Cache read price cannot be negative").optional(),
23+
cache_write: z.number().min(0, "Cache write price cannot be negative").optional(),
2424
}),
2525
limit: z.object({
2626
context: z.number().min(0, "Context window must be positive"),

providers/amazon-bedrock/models/ai21.jamba-1-5-large-v1:0.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ temperature = true
66
[cost]
77
input = 2.00
88
output = 8.00
9-
inputCached = 0.00
10-
outputCached = 0.00
119

1210
[limit]
1311
context = 256_000

providers/amazon-bedrock/models/ai21.jamba-1-5-mini-v1:0.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ temperature = true
66
[cost]
77
input = 0.20
88
output = 0.40
9-
inputCached = 0.00
10-
outputCached = 0.00
119

1210
[limit]
1311
context = 256_000

providers/amazon-bedrock/models/amazon.nova-lite-v1:0.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ temperature = true
66
[cost]
77
input = 0.06
88
output = 0.24
9-
inputCached = 0.015
10-
outputCached = 0.00
9+
cache_read = 0.015
1110

1211
[limit]
1312
context = 300_000

providers/amazon-bedrock/models/amazon.nova-micro-v1:0.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ temperature = true
66
[cost]
77
input = 0.035
88
output = 0.14
9-
inputCached = 0.00875
10-
outputCached = 0.00
9+
cache_read = 0.00875
1110

1211
[limit]
1312
context = 128_000

providers/amazon-bedrock/models/amazon.nova-premier-v1:0.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ temperature = true
66
[cost]
77
input = 2.50
88
output = 12.50
9-
inputCached = 0.00
10-
outputCached = 0.00
119

1210
[limit]
1311
context = 1_000_000

providers/amazon-bedrock/models/amazon.nova-pro-v1:0.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ temperature = true
66
[cost]
77
input = 0.80
88
output = 3.20
9-
inputCached = 0.20
10-
outputCached = 0.00
9+
cache_read = 0.20
1110

1211
[limit]
1312
context = 300_000

providers/amazon-bedrock/models/anthropic.claude-3-5-haiku-20241022-v1:0.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ temperature = true
66
[cost]
77
input = 0.80
88
output = 4.00
9-
inputCached = 0.08
10-
outputCached = 1.00
9+
cache_read = 0.08
10+
cache_write = 1.00
1111

1212
[limit]
1313
context = 200_000

providers/amazon-bedrock/models/anthropic.claude-3-5-sonnet-20240620-v1:0.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ temperature = true
66
[cost]
77
input = 3.00
88
output = 15.00
9-
inputCached = 0.30
10-
outputCached = 3.75
9+
cache_read = 0.30
10+
cache_write = 3.75
1111

1212
[limit]
1313
context = 200_000

providers/amazon-bedrock/models/anthropic.claude-3-5-sonnet-20241022-v2:0.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ temperature = true
66
[cost]
77
input = 3.00
88
output = 15.00
9-
inputCached = 0.30
10-
outputCached = 3.75
9+
cache_read = 0.30
10+
cache_write = 3.75
1111

1212
[limit]
1313
context = 200_000

0 commit comments

Comments
 (0)