@ai-sdk/[email protected]
@ai-sdk/[email protected]
ai
Release Notes
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.