feat: cache token stat.

This commit is contained in:
2026-05-02 10:13:33 +08:00
parent 6ef84b7488
commit f81ee19bed
4 changed files with 91 additions and 33 deletions
+2
View File
@@ -16,6 +16,8 @@ type AIAnalysisRecord struct {
OutputTokens int `json:"outputTokens"`
InputSizeBytes int `json:"inputSizeBytes"`
OutputSizeBytes int `json:"outputSizeBytes"`
CacheHitTokens int `json:"cacheHitTokens"`
CacheMissTokens int `json:"cacheMissTokens"`
DurationMs int64 `json:"durationMs"`
OriginalFileSize int64 `json:"originalFileSize"`
CompressedContentSize int64 `json:"compressedContentSize"`