@posthog/ai 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
+ # 3.2.1 - 2025-02-11
2
+
3
+ - fix: add experimental_wrapLanguageModel to vercel middleware supporting older versions of ai
4
+
1
5
  # 3.2.0 - 2025-02-11
2
6
 
3
- - fix: change how we handle streaming support for openai and anthropic
7
+ - feat: change how we handle streaming support for openai and anthropic
4
8
 
5
9
  # 3.1.1 - 2025-02-07
6
10
 
package/lib/index.cjs.js CHANGED
@@ -653,7 +653,7 @@ const wrapVercelLanguageModel = (model, phClient, options) => {
653
653
  posthogTraceId: traceId,
654
654
  posthogDistinctId: options.posthogDistinctId ?? traceId
655
655
  });
656
- const wrappedModel = ai.wrapLanguageModel({
656
+ const wrappedModel = ai.experimental_wrapLanguageModel({
657
657
  model,
658
658
  middleware
659
659
  });