Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7N4ZDbUtA3ofqAqRV
7 lines
453 B
Plaintext
7 lines
453 B
Plaintext
# Anthropic usage with cache tokens (Spring AI 2.0.2)
|
|
server reports: input_tokens=50 cache_creation=300 cache_read=2000 output=100
|
|
call() promptTokens=50 completionTokens=100 totalTokens=150 cacheRead=2000 cacheWrite=300
|
|
call() prompt + cacheRead + cacheWrite (the old workaround) = 2350
|
|
stream() promptTokens=50 completionTokens=100 totalTokens=150 cacheRead=null cacheWrite=null
|
|
stream() prompt + cacheRead + cacheWrite (the old workaround) = 50
|