Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: Support AI SDK 6 (Vercel AI SDK) #2918

Copy link
Copy link
@lukecharle

Description

@lukecharle
Issue body actions

Is your feature request related to a problem? Please describe.

The @trigger.dev/sdk currently has a peer dependency on ai@^4.2.0 || ^5.0.0, which prevents using the latest Vercel AI SDK 6.x alongside Trigger.dev.

When attempting to install both:

npm error ERESOLVE could not resolve
npm error While resolving: @trigger.dev/sdk@4.3.2
npm error Found: ai@6.0.42
npm error   peer ai@"^4.2.0 || ^5.0.0" from @trigger.dev/sdk@4.3.2

Using --legacy-peer-deps to force the install causes cascading issues where other packages fail to install correctly.

Describe the solution you'd like to see

Update the peer dependency to include AI SDK 6:

"ai": "^4.2.0 || ^5.0.0 || ^6.0.0"

And update any internal usage to be compatible with the SDK 6 API changes (e.g., toDataStreamResponse()toTextStreamResponse(), maxTokensmaxOutputTokens).

Describe alternate solutions

Currently we're forced to stay on AI SDK 5, which works but means missing out on SDK 6 improvements and features.

Additional information

AI SDK 6 was released recently and includes:

  • New response streaming APIs
  • Updated model configuration options
  • Various performance improvements

Related discussion: The AI SDK transport feature request (#2634) also references SDK v5, so SDK 6 support would benefit that work as well.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.