fix: count reasoning tokens (#2187)
parent
004f53f741
commit
1f57b9a70f
|
|
@ -1680,7 +1680,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…
Reference in New Issue