@posthog/ai
8.22.0 · 20 Nov 2026MIT1.9M / weekRepositoryHomepagenpmAtom feed
Upgrading @posthog/ai From 7.16.8 to 7.21.0
50 releases in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
Redact base64/binary multimodal content from AI spans in the OTel
PostHogSpanProcessorandPostHogTraceExporterbefore export, matching the redaction already applied by the direct provider wrappers. Content is redacted by value (data URLs and large base64 blobs) across span attributes and span events, so it works regardless of which GenAI semantic convention produced the span. (2026-06-08)
- New
7.20.14nothing new or fixed in the note
- Fixed
Preserve OpenAI APIPromise response helpers on instrumented OpenAI wrapper calls. (2026-06-05)
- Fixed
7.20.4 – 7.20.129 releases, nothing new or fixed in the notes
- Fixed
Disable/no-op initialization paths instead of throwing or sending requests when PostHog project tokens are missing or blank. (2026-06-01)
- Fixed
7.20.1 – 7.20.22 releases, nothing new or fixed in the notes
- New
Add
$ai_completion_idand$ai_provider_metadatato$ai_generationevents for the OpenAI and Azure OpenAI wrappers.$ai_completion_idis the provider's response ID (e.g.chatcmpl-…/resp_…);$ai_provider_metadatacarries OpenAI-specific fields (system_fingerprint,request_id). Together they enable correlating PostHog events with OpenAI's Logs dashboard (platform.openai.com/logs/{completion_id}). The same options (completionId,providerMetadata) are now accepted by the publiccaptureAiGenerationprimitive so other provider wrappers can follow the same pattern. (2026-05-29)
- New
7.19.7nothing new or fixed in the note
82 internal lines (docs, tests, tooling) left out.
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.