chore: generate
This commit is contained in:
parent
3c6be604ec
commit
1c49b2ed67
2 changed files with 2 additions and 7 deletions
|
|
@ -294,9 +294,7 @@ const mapUsage = (usage: GeminiUsage | undefined) => {
|
|||
// when the visible component is reported — otherwise we'd fabricate an
|
||||
// inclusive number from a partial breakdown.
|
||||
const outputTokens =
|
||||
usage.candidatesTokenCount !== undefined
|
||||
? usage.candidatesTokenCount + (usage.thoughtsTokenCount ?? 0)
|
||||
: undefined
|
||||
usage.candidatesTokenCount !== undefined ? usage.candidatesTokenCount + (usage.thoughtsTokenCount ?? 0) : undefined
|
||||
return new Usage({
|
||||
inputTokens: usage.promptTokenCount,
|
||||
outputTokens,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue