mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
wip: zen
This commit is contained in:
parent
89167ae387
commit
e10bb58cb3
1 changed files with 1 additions and 1 deletions
|
|
@ -307,7 +307,7 @@ export async function handler(
|
|||
|
||||
const modelCost =
|
||||
modelInfo.cost200K &&
|
||||
usage.inputTokens + usage.cacheReadTokens + usage.cacheWrite5mTokens + usage.cacheWrite1hTokens > 200_000
|
||||
inputTokens + (cacheReadTokens ?? 0) + (cacheWrite5mTokens ?? 0) + (cacheWrite1hTokens ?? 0) > 200_000
|
||||
? modelInfo.cost200K
|
||||
: modelInfo.cost
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue