diff --git a/web/src/helpers/render.jsx b/web/src/helpers/render.jsx index 3cbb94e1..425abb31 100644 --- a/web/src/helpers/render.jsx +++ b/web/src/helpers/render.jsx @@ -1795,10 +1795,13 @@ export function renderClaudeModelPrice( // Calculate effective input tokens (non-cached + cached with ratio applied + cache creation with ratio applied) const nonCachedTokens = inputTokens; + const legacyCacheCreationTokens = hasSplitCacheCreation + ? 0 + : cacheCreationTokens; const effectiveInputTokens = nonCachedTokens + cacheTokens * cacheRatio + - cacheCreationTokens * cacheCreationRatio + + legacyCacheCreationTokens * cacheCreationRatio + cacheCreationTokens5m * cacheCreationRatio5m + cacheCreationTokens1h * cacheCreationRatio1h;