Packages

@posthog/ai

8.22.0 · 20 Nov 2026MIT1.9M / weekRepositoryHomepagenpmAtom feed

Your version

8.9.2

1 Sep 2026Where it was published

8.22.0 is the newest release of 8.x.

In short

1 fixed

Release note

Patch Changes

  • Interrupted or cancelled streams now report the token usage and latency they actually observed, instead of zeros, across the OpenAI, Anthropic, Gemini, Azure and Vercel wrappers. When usage was never reported, token counts and override costs are omitted entirely, so $ai_input_tokens can be absent where it was previously always 0.
    (2026-09-01)

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.