Groq prompt cache hits now report cached token counts
@ai-sdk/groq@3.0.51
Patch Changes
-
cee7e45: 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 12, 2026

