Skip to content

Commit 2e13974

Browse files
committed
Render cache read and write
1 parent 19bc7d7 commit 2e13974

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/worker.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ app.get("/", async (c) => {
107107
<th>Temperature</th>
108108
<th data-desc="per 1M tokens">Input Cost</th>
109109
<th data-desc="per 1M tokens">Output Cost</th>
110-
<th data-desc="per 1M tokens">Input Cached Cost</th>
111-
<th data-desc="per 1M tokens">Output Cached Cost</th>
110+
<th data-desc="per 1M tokens">Cache Read Cost</th>
111+
<th data-desc="per 1M tokens">Cache Write Cost</th>
112112
<th>Context Limit</th>
113113
<th>Output Limit</th>
114114
</tr>
@@ -134,8 +134,8 @@ app.get("/", async (c) => {
134134
<td>{model.temperature ? "Yes" : "No"}</td>
135135
<td>${model.cost.input}</td>
136136
<td>${model.cost.output}</td>
137-
<td>${model.cost.inputCached}</td>
138-
<td>${model.cost.outputCached}</td>
137+
<td>{model.cost.cache_read ? `$${model.cost.cache_read}` : "-"}</td>
138+
<td>{model.cost.cache_write ? `$${model.cost.cache_write}` : "-"}</td>
139139
<td>{model.limit.context}</td>
140140
<td>{model.limit.output}</td>
141141
</tr>

0 commit comments

Comments
 (0)