@posthog/ai
8.22.0 · 20 Nov 2026MIT1.9M / weekRepositoryHomepagenpmAtom feed
270 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
7.16.1
21 Apr 2026Reading the note…
7.16.0
15 Apr 2026- Deprecated
Prompts.get()now accepts{ withMetadata: true }and returns aPromptResultobject containingsource(api,cache,stale_cache, orcode_fallback),name, andversionalongside the prompt text. The previous plain-string return is deprecated and will be removed in a future major version.
(2026-04-15)
7.15.0
14 Apr 2026Add
PostHogSpanProcessoras a self-contained OpenTelemetrySpanProcessorthat handles batching and export internally. BothPostHogSpanProcessorandPostHogTraceExporternow automatically filter to AI-related spans only (gen_ai.*,llm.*,ai.*,traceloop.*).
(2026-04-14)Add OpenAI Agents SDK tracing support via
@posthog/ai/openai-agents. ImplementsPostHogTracingProcessorthat captures agent traces, spans, and LLM generations as PostHog LLM analytics events. Supports all span types including generation, response, function/tool, agent, handoff, guardrail, custom, audio, and MCP.
(2026-04-14)
7.14.0
10 Apr 2026Add
$ai_stop_reasonproperty capturing the LLM's reason for stopping generation across all providers
(2026-04-10)Add Gemini
embedContenttracking support
(2026-04-10)
7.13.2
9 Apr 2026Reading the note…
7.13.1
7 Apr 2026Reading the note…
7.13.0
7 Apr 2026Preserve $set_once semantics in local flag evaluation cache
(2026-04-07)
Minor Changes
Preserve $set_once semantics in local flag evaluation cache
(2026-04-07)
7.12.8
2 Apr 2026Reading the note…
7.12.7
1 Apr 2026Reading the note…
7.12.6
31 Mar 2026Reading the note…
7.12.5
30 Mar 2026Reading the note…
7.12.4
27 Mar 2026Reading the note…
7.12.3
27 Mar 2026Reading the note…
7.12.2
20 Mar 2026Reading the note…
7.12.1
18 Mar 2026Reading the note…
7.12.0
18 Mar 2026Replace otel client-side span mapping with PostHogTraceExporter. PostHog now converts gen_ai.* spans into $ai_generation events server-side, so the client-side mapper pipeline (PostHogSpanProcessor, captureSpan, aiSdkSpanMapper) has been replaced with a simple OTLPTraceExporter wrapper.
(2026-03-18)
Minor Changes
Replace otel client-side span mapping with PostHogTraceExporter. PostHog now converts gen_ai.* spans into $ai_generation events server-side, so the client-side mapper pipeline (PostHogSpanProcessor, captureSpan, aiSdkSpanMapper) has been replaced with a simple OTLPTraceExporter wrapper.
(2026-03-18)
7.11.2
13 Mar 2026Reading the note…
7.11.1
11 Mar 2026Reading the note…
7.11.0
9 Mar 2026Add version-specific
Prompts.clearCache(name, version)support and switch prompt caching to structured name/version entries instead of string-encoded cache keys.
(2026-03-09)
7.10.0
9 Mar 2026Add version-aware prompt fetching to the Prompts SDK so callers can request a specific published prompt version without colliding with the latest prompt cache entry.
(2026-03-09)
7.9.5
3 Mar 2026Reading the note…
7.9.4
2 Mar 2026Reading the note…
7.9.3
25 Feb 2026Reading the note…
7.9.2
24 Feb 2026Reading the note…
7.9.1
23 Feb 2026Reading the note…
7.9.0
18 Feb 2026Added AI SDK OTEL span processing pipeline
(2026-02-18)
7.8.13
18 Feb 2026Reading the note…
7.8.12
17 Feb 2026Reading the note…
7.8.11
12 Feb 2026Reading the note…
7.8.10
11 Feb 2026Reading the note…
7.8.9
10 Feb 2026Reading the note…
7.8.8
9 Feb 2026Reading the note…
7.8.7
9 Feb 2026Reading the note…
7.8.6
6 Feb 2026Reading the note…
7.8.5
4 Feb 2026Reading the note…
7.8.4
3 Feb 2026Reading the note…
7.8.3
3 Feb 2026Reading the note…
7.8.2
29 Jan 2026Reading the note…
7.8.1
29 Jan 2026Reading the note…
7.8.0
29 Jan 2026llma: Add time to first token reporting
(2026-01-29)
7.7.0
28 Jan 2026Add prompt management functions.
(2026-01-28)
7.6.1
28 Jan 2026Reading the note…
7.6.0
27 Jan 2026Add
rawUsagefield to capture raw provider usage metadata for backend cost calculations
(2026-01-27)Dependencies updates: - Updated dependency
@google/genai@^1.38.0↗︎ (from^1.34.0, independencies) - Updated dependency@langchain/core@^1.1.17↗︎ (from^1.1.8, independencies) (2026-01-27)Sanitize base64 images before formatting in Responses API to prevent 413 payload-too-large errors
(2026-01-27)
Minor Changes
Add
rawUsagefield to capture raw provider usage metadata for backend cost calculations
(2026-01-27)
Patch Changes
Dependencies updates: - Updated dependency
@google/genai@^1.38.0↗︎ (from^1.34.0, independencies) - Updated dependency@langchain/core@^1.1.17↗︎ (from^1.1.8, independencies) (2026-01-27)Sanitize base64 images before formatting in Responses API to prevent 413 payload-too-large errors
(2026-01-27)
7.5.4
23 Jan 2026Reading the note…
7.5.3
20 Jan 2026Reading the note…
7.5.2
20 Jan 2026Reading the note…
7.5.1
19 Jan 2026Reading the note…
7.5.0
19 Jan 2026Only updates a dependency:posthog-node 5.22.0
7.4.3
16 Jan 2026Reading the note…
7.4.2
12 Jan 2026Reading 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.