fix gemini reasoning tokens not counted

This commit is contained in:
Frank 2026-08-02 02:31:18 -04:00
commit 1882c33827

View file

@ -65,7 +65,7 @@ export const googleHelper: ProviderHelper = ({ providerModel }) => ({
const cacheReadTokens = usage.cachedContentTokenCount ?? 0
return {
inputTokens: inputTokens - cacheReadTokens,
outputTokens,
outputTokens: outputTokens + reasoningTokens,
reasoningTokens,
cacheReadTokens,
cacheWrite5mTokens: undefined,