Packages

@posthog/ai

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

Your version

6.5.0

28 Oct 2025Where it was published

6.6.0 is the newest release of 6.x.

In short

1 new

Release note

Minor Changes

  • Add $ai_framework property for framework integrations

    Adds a simple $ai_framework property to AI events when using framework layers (LangChain, Vercel AI SDK). Direct provider calls (OpenAI, Anthropic, Gemini) do not include this property, eliminating redundant data where framework would duplicate the provider name.

    Example with framework:

    {
      "$ai_framework": "langchain",
      "$ai_provider": "openai",
      "$ai_model": "gpt-4"
    }

    Example without framework:

    {
      "$ai_provider": "openai",
      "$ai_model": "gpt-4"
    }

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.