@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/lib/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import OpenAIOrignal, { AzureOpenAI } from 'openai';
2
2
  import * as uuid from 'uuid';
3
3
  import { v4 } from 'uuid';
4
- import { wrapLanguageModel } from 'ai';
4
+ import { experimental_wrapLanguageModel } from 'ai';
5
5
  import AnthropicOriginal from '@anthropic-ai/sdk';
6
6
 
7
7
  const getModelParams = params => {
@@ -626,7 +626,7 @@ const wrapVercelLanguageModel = (model, phClient, options) => {
626
626
  posthogTraceId: traceId,
627
627
  posthogDistinctId: options.posthogDistinctId ?? traceId
628
628
  });
629
- const wrappedModel = wrapLanguageModel({
629
+ const wrappedModel = experimental_wrapLanguageModel({
630
630
  model,
631
631
  middleware
632
632
  });