Groq prompt cache hits now reported in usage
@ai-sdk/groq@4.0.8
Patch Changes
-
23ca4c9: fix (provider/groq): surface prompt cache reads in usage
convertGroqUsageacceptedprompt_tokens_details.cached_tokensbut never read it, so cache hits were reported ascacheRead: undefinedand the entire prompt was counted asnoCache. Groq's implicit prompt caching now surfaces asusage.cachedInputTokens(mapped tocacheRead, subtracted fromnoCache). Groq has no cache-creation charge, socacheWriteremains undefined.
Fetched July 11, 2026

