fix: count reasoning tokens (#2187)
This commit is contained in:
parent
004f53f741
commit
1f57b9a70f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue