Skip to content
This repository was archived by the owner on Sep 4, 2026. It is now read-only.
This repository was archived by the owner on Sep 4, 2026. It is now read-only.

AI SDK v5 Compatibility Issue #19

Description

@markacianfrani

Using the embed and chat models on v5 of the ai sdk is throwing compatibility errors:

Error: Unsupported model version v3 for provider "github-models" and model "gpt-4o-mini". AI SDK 5 only supports models that implement specification version "v2".

Reproducible example: https://stackblitz.com/edit/stackblitz-starters-oyemu4d7?file=index.js (AI Disclosure: entirely generated)

Steps to reproduce:

  • Fresh install
  • AI sdk at latest (5.0.68)

Suspected root cause: the "beta" tag on the AI SDK deps is pulling the newest V3 stuff at runtime. I thought the issue was on my end because you clearly are implementing the V2 interface. I imagine something just recently changed on the ai sdk beta tag side that broke something.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions