github PostHog/posthog-js @posthog/ai@7.3.0

7.3.0

Minor Changes

  • #2711 8c3a21e Thanks @andrewm4894! - Add support for both Vercel AI SDK 5 and 6

    Changes:

    • Runtime version detection via model.specificationVersion
    • Support both LanguageModelV2 (SDK 5) and LanguageModelV3 (SDK 6)
    • @ai-sdk/provider is now an optional peer dependency (supports both v2 and v3)
    • Removed unused ai peer dependency (only type imports from @ai-sdk/provider are used)
    • No breaking changes - existing SDK 5 users can continue without modification (2025-12-22)

Patch Changes

  • #2789 6b415a0 Thanks @andrewm4894! - fix: 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)

  • Updated dependencies [04065b9]:

    • posthog-node@5.18.0

Don't miss a new posthog-js release

NewReleases is sending notifications on new releases.