Skip to content

@ai-sdk/groq@4.0.8

Choose a tag to compare

@github-actions github-actions released this 11 Jul 20:21
c093ee7

Patch Changes

  • 23ca4c9: fix (provider/groq): surface prompt cache reads in usage

    convertGroqUsage accepted prompt_tokens_details.cached_tokens but never read it, so cache hits were reported as cacheRead: undefined and the entire prompt was counted as noCache. Groq's implicit prompt caching now surfaces as usage.cachedInputTokens (mapped to cacheRead, subtracted from noCache). Groq has no cache-creation charge, so cacheWrite remains undefined.