Files
spring-ai/ai-21-migration/output/01-usage-2.0.0.txt
T

7 lines
453 B
Plaintext

# Anthropic usage with cache tokens (Spring AI 2.0.0)
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