Packages

@posthog/ai

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

Your version

8.3.1

16 Jul 2026Where it was published

8.22.0 is the newest release of 8.x.

In short

1 fixed

Release note

Patch Changes

  • ai: Declare $ai_cache_reporting_exclusive: false on OpenAI wrapper events so ingestion no longer double-bills cached input tokens for Claude models served through OpenAI-compatible hosts (e.g. OpenRouter). The flag stays unset when callers pass their own input or cache token counts through posthogProperties, so existing passthrough workarounds keep reporting correctly.
    (2026-07-16)

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.