github PostHog/posthog-js @posthog/ai@8.2.0

latest releases: @posthog/mcp@0.2.0, posthog-js@1.386.4, posthog-react-native@4.46.32...
5 hours ago

8.2.0

Minor Changes

  • #3793 b477c02 Thanks @richardsolomou! - feat: 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)

Don't miss a new posthog-js release

NewReleases is sending notifications on new releases.