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

7 lines
460 B
Plaintext

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