Skip to content

chore(templates): update vercel-ai-sdk overlays to ai v7 and @ai-sdk/openai v4 - #1232

Merged
AbhinRustagi merged 1 commit into
mainfrom
devin/1790149751-vercel-ai-sdk-templates-ai7
Sep 23, 2026
Merged

AbhinRustagi merged 1 commit into
mainfrom
devin/1790149751-vercel-ai-sdk-templates-ai7

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

What

Bumps the vercel-ai-sdk overlays of both CLI templates to the current AI SDK majors and moves the chat route off the deprecated result.toUIMessageStreamResponse().

Changes

  • templates/{openui-cloud,openui-self-hosted}/overlays/vercel-ai-sdk/manifest.json: ai ^6.0.x → ^7.0.111, @ai-sdk/openai ^3.0.x → ^4.0.72 (self-hosted also switches from exact pins to caret ranges, matching the cloud overlay).
  • Regenerated both overlay package-lock.json files (same merge logic as scripts/manage-starters.mjs).
  • src/app/api/chat/route.ts in both overlays:
    - return result.toUIMessageStreamResponse();
    + return createUIMessageStreamResponse({
    +   stream: toUIMessageStream({ stream: result.stream }),
    + });

Test Plan

  • Verified locally: composed both template + overlay apps from the repo (as the CLI would), npm ci against the new lockfiles, then tsc --noEmit, eslint on the route, and next build all pass for both.
  • Smoke-tested the self-hosted route with next start + curl POST /api/chat: it streams a valid UI message stream (start → text-start → text-delta …).
  • CI cli-e2e-overlays covers the vercel-ai-sdk overlay for both templates.

Checklist

  • I linked a related issue, if applicable
  • I updated docs/README when needed (n/a — docs/examples still on toUIMessageStreamResponse are out of scope here)
  • I considered backwards compatibility (templates only; scaffolded apps are unaffected)

Link to Devin session: https://app.devin.ai/sessions/cbd95f4a33144917a7530712e8086a03
Open in Devin Desktop: https://app.devin.ai/desktop/session/cbd95f4a33144917a7530712e8086a03?variant=devin

…openai v4

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openui-docs Ready Ready Preview Sep 23, 2026 7:52am UTC

Request Review

@AbhinRustagi
AbhinRustagi enabled auto-merge (squash) September 23, 2026 07:50
@AbhinRustagi
AbhinRustagi merged commit ec8de6c into main Sep 23, 2026
42 of 43 checks passed
@AbhinRustagi
AbhinRustagi deleted the devin/1790149751-vercel-ai-sdk-templates-ai7 branch September 23, 2026 07:53

This branch was successfully deployed

1 active deployment
Preview — cfb0805b Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant