mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-27 15:13:37 +08:00
fix(cache): add compactionCacheHitRatio to auto_compact_succeeded event
Completes Cache Economics tracking by wiring the computed cache hit ratio into the existing GrowthBook analytics event, making it dashboard-trackable without code changes. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
5877610077
commit
681868188c
@ -547,6 +547,7 @@ async function* queryLoop(
|
||||
compactionUsage?.cache_read_input_tokens ?? 0,
|
||||
compactionCacheCreationTokens:
|
||||
compactionUsage?.cache_creation_input_tokens ?? 0,
|
||||
compactionCacheHitRatio: cacheMetrics?.cacheHitRatio ?? 0,
|
||||
compactionTotalTokens: compactionUsage
|
||||
? compactionUsage.input_tokens +
|
||||
(compactionUsage.cache_creation_input_tokens ?? 0) +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user