@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.x
7.4.1
8 Jan 2026Reading the note…
7.4.0
8 Jan 2026Track LLMA trace_id on exceptions and exception_id on traces
(2026-01-08)
Minor Changes
Track LLMA trace_id on exceptions and exception_id on traces
(2026-01-08)
7.3.2
7 Jan 2026Reading the note…
7.3.1
6 Jan 2026Reading the note…
7.3.0
22 Dec 2025Add 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)
Minor Changes
Add support for both Vercel AI SDK 5 and 6
Changes:
Runtime version detection via
model.specificationVersionSupport both
LanguageModelV2(SDK 5) andLanguageModelV3(SDK 6)@ai-sdk/provideris now an optional peer dependency (supports both v2 and v3)Removed unused
aipeer dependency (only type imports from@ai-sdk/providerare used)No breaking changes - existing SDK 5 users can continue without modification (2025-12-22)
Patch 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.2.2
16 Dec 2025Reading the note…
7.2.1
4 Dec 2025Reading the note…
7.2.0
24 Nov 2025Package deprecation
(2025-11-24)
Minor Changes
Package deprecation
(2025-11-24)
7.1.2
24 Nov 2025Reading the note…
7.1.1
21 Nov 2025Reading the note…
7.1.0
15 Nov 2025Added 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).
7.0.0
6 Nov 2025- Breaking
Update LLM provider SDKs to latest versions
- 6.x
6.6.0
5 Nov 2025llma: Send number of web searches calls
6.5.1
3 Nov 2025Reading the note…
6.5.0
28 Oct 2025Add $ai_framework property for framework integrations
Adds a simple
$ai_frameworkproperty 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" }
6.4.4
21 Oct 2025Reading the note…
6.4.3
29 Sep 2025Reading the note…
6.4.2
24 Sep 2025Reading the note…
6.4.1
17 Sep 2025Reading the note…
6.4.0
15 Sep 2025Dependencies updated to support latest APIs from provider SDKs
6.3.3
15 Sep 2025Reading the note…
6.3.2
3 Sep 2025Reading the note…
6.3.1
2 Sep 2025Reading the note…
6.3.0
1 Sep 2025Adds support for embeddings for OpenAI and Azure OpenAI
6.2.0
27 Aug 2025Send ai library version in events
6.1.2
20 Aug 2025Reading the note…
6.1.1
13 Aug 2025Reading the note…
6.1.0
13 Aug 2025Add support for reasoning and cache tokens in gemini + fix token calc in vercel
6.0.1
7 Aug 2025Reading the note…
6.0.0
7 Aug 2025- Breaking
Updated Vercel AI SDK to v5
Fix tool calls for all non-streaming providers
- 5.x
5.2.3
30 Jul 2025Fix bug where tool calls were not sent in LangChain
5.2.2
23 Jul 20255.2.1
18 Jul 2025Reading the note…
- 4.x
4.3.1
2 May 2025Reading the note…
4.3.0
1 May 2025Reading the note…
4.2.1
29 Apr 2025Reading the note…
4.2.0
29 Apr 2025Reading the note…
4.1.0
28 Apr 2025Reading the note…
- 3.x
3.2.1
10 Feb 2025Reading 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.