File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/opencode/src/session Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -432,8 +432,8 @@ export namespace Session {
432432 new Decimal ( 0 )
433433 . add ( new Decimal ( tokens . input ) . mul ( costInfo ?. input ?? 0 ) . div ( 1_000_000 ) )
434434 . add ( new Decimal ( tokens . output ) . mul ( costInfo ?. output ?? 0 ) . div ( 1_000_000 ) )
435- . add ( new Decimal ( tokens . cache . read ) . mul ( costInfo ?. cache . read ?? 0 ) . div ( 1_000_000 ) )
436- . add ( new Decimal ( tokens . cache . write ) . mul ( costInfo ?. cache . write ?? 0 ) . div ( 1_000_000 ) )
435+ . add ( new Decimal ( tokens . cache . read ) . mul ( costInfo ?. cache ? .read ?? 0 ) . div ( 1_000_000 ) )
436+ . add ( new Decimal ( tokens . cache . write ) . mul ( costInfo ?. cache ? .write ?? 0 ) . div ( 1_000_000 ) )
437437 // TODO: update models.dev to have better pricing model, for now:
438438 // charge reasoning tokens at the same rate as output tokens
439439 . add ( new Decimal ( tokens . reasoning ) . mul ( costInfo ?. output ?? 0 ) . div ( 1_000_000 ) )
You can’t perform that action at this time.
0 commit comments