File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/opencode/src/session Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1344,10 +1344,10 @@ export namespace Session {
13441344 }
13451345 return {
13461346 cost : new Decimal ( 0 )
1347- . add ( new Decimal ( tokens . input ) . mul ( model . cost . input ) . div ( 1_000_000 ) )
1348- . add ( new Decimal ( tokens . output ) . mul ( model . cost . output ) . div ( 1_000_000 ) )
1349- . add ( new Decimal ( tokens . cache . read ) . mul ( model . cost . cache_read ?? 0 ) . div ( 1_000_000 ) )
1350- . add ( new Decimal ( tokens . cache . write ) . mul ( model . cost . cache_write ?? 0 ) . div ( 1_000_000 ) )
1347+ . add ( new Decimal ( tokens . input ) . mul ( model . cost ? .input ?? 0 ) . div ( 1_000_000 ) )
1348+ . add ( new Decimal ( tokens . output ) . mul ( model . cost ? .output ?? 0 ) . div ( 1_000_000 ) )
1349+ . add ( new Decimal ( tokens . cache . read ) . mul ( model . cost ? .cache_read ?? 0 ) . div ( 1_000_000 ) )
1350+ . add ( new Decimal ( tokens . cache . write ) . mul ( model . cost ? .cache_write ?? 0 ) . div ( 1_000_000 ) )
13511351 . toNumber ( ) ,
13521352 tokens,
13531353 }
You can’t perform that action at this time.
0 commit comments