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