Skip to content

Commit e5a8765

Browse files
authored
Retain input tokens from usage if we have them (#977)
2 parents 7e81de7 + cadca85 commit e5a8765

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/lib/processUsage.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,10 @@ async function processTokenData(
946946
[genStats.cacheDiscount_mUsd, usageStats.cacheDiscount_mUsd]
947947
);
948948
}
949+
if (usageStats.inputTokens) {
950+
// retain because of vercel bug: https://kilo-code.slack.com/archives/C08UR25T02V/p1773140435733259
951+
genStats.inputTokens = usageStats.inputTokens;
952+
}
949953
usageStats = genStats;
950954
}
951955

0 commit comments

Comments
 (0)