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

17 hours ago

6.5.0

Minor Changes

  • #2496 7253bb3 Thanks @andrewm4894! - feat: 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"
    }

Don't miss a new posthog-js release

NewReleases is sending notifications on new releases.