Packages

@posthog/ai

8.22.0 · 20 Nov 2026MIT1.9M / weekRepositoryHomepagenpmAtom feed

Your version

7.3.0

22 Dec 2025Where it was published

7.21.0 is the newest release of 7.x.

In short

1 new1 fixed1 internal

Release note

Minor Changes

  • 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

  • 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)

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.