mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-22 19:55:11 +00:00
fix: ensure reasoning tokens arent double counted when calculating usage (#21047)
This commit is contained in:
parent
930e94a3ea
commit
280eb16e77
1 changed files with 1 additions and 1 deletions
|
|
@ -278,7 +278,7 @@ export namespace Session {
|
|||
const tokens = {
|
||||
total,
|
||||
input: adjustedInputTokens,
|
||||
output: outputTokens,
|
||||
output: outputTokens - reasoningTokens,
|
||||
reasoning: reasoningTokens,
|
||||
cache: {
|
||||
write: cacheWriteInputTokens,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue