mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: count reasoning tokens
This commit is contained in:
parent
74c1085103
commit
a025c1866e
1 changed files with 1 additions and 1 deletions
|
|
@ -1612,7 +1612,7 @@ export namespace Session {
|
|||
const tokens = {
|
||||
input: usage.inputTokens ?? 0,
|
||||
output: usage.outputTokens ?? 0,
|
||||
reasoning: 0,
|
||||
reasoning: usage?.reasoningTokens ?? 0,
|
||||
cache: {
|
||||
write: (metadata?.["anthropic"]?.["cacheCreationInputTokens"] ??
|
||||
// @ts-expect-error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue