Packages

@posthog/ai

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

Upgrading @posthog/ai From 8.1.11 to 8.2.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 8.1.11Newest 8.x, Latest8.22.0
  1. 8.1.11yours
  2. 8.2.0target
0
changes to make
0
advisories fixed
1
new
0
fixes

Release by release

  1. 8.2.0

    11 Jun 20261 new
    • New

      Warn when a base_url points at the PostHog AI Gateway. The gateway emits its own $ai_generation, so routing through it double-captures (and, for billable products, double-bills) every call. Detection covers the provider wrappers (OpenAI, Azure, Anthropic, Gemini, Vercel), LangChain, OpenAI Agents, direct captureAiGeneration callers, and the OTel exporter/processor (via the span's server.address / url.full). The warning logs on every routed call; the event is left untouched, since it carries data the gateway never sees (groups, custom properties, trace hierarchy). (2026-06-11)

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.