Packages

@posthog/ai

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

Your version

270 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 7.x
  2. 7.4.1

    8 Jan 2026

    Reading the note…

  3. 7.4.0

    8 Jan 2026
    • Track LLMA trace_id on exceptions and exception_id on traces
      (2026-01-08)

  4. 7.3.2

    7 Jan 2026

    Reading the note…

  5. 7.3.1

    6 Jan 2026

    Reading the note…

  6. 7.3.0

    22 Dec 2025
    • Add support for both Vercel AI SDK 5 and 6

      Changes:

    • Extract model from response for OpenAI stored prompts

      When using OpenAI stored prompts, the model is defined in the OpenAI dashboard rather than passed in the API request. This change adds a fallback to extract the model from the response object when not provided in kwargs. (2025-12-22)

  7. 7.2.2

    16 Dec 2025

    Reading the note…

  8. 7.2.1

    4 Dec 2025

    Reading the note…

  9. 7.2.0

    24 Nov 2025
    • Package deprecation
      (2025-11-24)

  10. 7.1.2

    24 Nov 2025

    Reading the note…

  11. 7.1.1

    21 Nov 2025

    Reading the note…

  12. 7.1.0

    15 Nov 2025
    • Added support for OpenAI audio transcriptions API. You can now track and monitor OpenAI Whisper transcription requests through the @posthog/ai SDK, with support for both streaming and non-streaming transcriptions, verbose JSON responses, and all standard transcription parameters (language, response_format, timestamp_granularities).

  13. 7.0.0

    6 Nov 2025
    • Breaking

      Update LLM provider SDKs to latest versions

  14. 6.x
  15. 6.6.0

    5 Nov 2025
    • llma: Send number of web searches calls

  16. 6.5.1

    3 Nov 2025

    Reading the note…

  17. 6.5.0

    28 Oct 2025
    • 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"
      }
  18. 6.4.4

    21 Oct 2025

    Reading the note…

  19. 6.4.3

    29 Sep 2025

    Reading the note…

  20. 6.4.2

    24 Sep 2025

    Reading the note…

  21. 6.4.1

    17 Sep 2025

    Reading the note…

  22. 6.4.0

    15 Sep 2025
    • Dependencies updated to support latest APIs from provider SDKs

  23. 6.3.3

    15 Sep 2025

    Reading the note…

  24. 6.3.2

    3 Sep 2025

    Reading the note…

  25. 6.3.1

    2 Sep 2025

    Reading the note…

  26. 6.3.0

    1 Sep 2025
    • Adds support for embeddings for OpenAI and Azure OpenAI

  27. 6.2.0

    27 Aug 2025
    • Send ai library version in events

  28. 6.1.2

    20 Aug 2025

    Reading the note…

  29. 6.1.1

    13 Aug 2025

    Reading the note…

  30. 6.1.0

    13 Aug 2025
    • Add support for reasoning and cache tokens in gemini + fix token calc in vercel

  31. 6.0.1

    7 Aug 2025

    Reading the note…

  32. 6.0.0

    7 Aug 2025
    • Breaking

      Updated Vercel AI SDK to v5

    • Fix tool calls for all non-streaming providers

  33. 5.x
  34. 5.2.3

    30 Jul 2025
    • Fix bug where tool calls were not sent in LangChain

  35. 5.2.2

    23 Jul 2025
  36. 5.2.1

    18 Jul 2025

    Reading the note…

  37. 5.0.0 – 5.2.04 releases without a noteShow each
  38. 4.x
  39. 4.3.2 – 4.4.02 releases without a noteShow each
  40. 4.3.1

    2 May 2025

    Reading the note…

  41. 4.3.0

    1 May 2025

    Reading the note…

  42. 4.2.1

    29 Apr 2025

    Reading the note…

  43. 4.2.0

    29 Apr 2025

    Reading the note…

  44. 4.1.0

    28 Apr 2025

    Reading the note…

  45. 4.0.0 – 4.0.12 releases without a noteShow each
  46. 3.x
  47. 3.3.0 – 3.3.23 releases without a noteShow each
  48. 3.2.1

    10 Feb 2025

    Reading the note…

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.