Skip to content

AI SDK v5 Compatibility Issue #19

@markacianfrani

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.

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