Files
kirogo/proxy/cache_tracker.go
huangzhenpc e8ab5b11e7
Some checks failed
Build Docker Image / build (push) Has been cancelled
fix: stop deducting simulated cache tokens from input_tokens
Kiro backend does not support Anthropic prompt cache protocol.
The local cache tracker simulates cache hits/creation for Claude Code
compatibility, but subtracting those values from input_tokens caused
the reported input_tokens to drop to single digits.

input_tokens now reflects the real value; cache_creation_input_tokens
and cache_read_input_tokens are still reported for protocol compliance.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 11:14:51 +08:00

16 KiB