feat (providers/vercel): initial vercel provider#6464
Conversation
.github/workflows/ci.yml
Outdated
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Build packages |
There was a problem hiding this comment.
Without this, the type-check fails as the @ai-sdk/vercel package hasn't been built. I'm not sure why this package is the first to trigger this failure. It seems logical that we would need the packages built for the type-check to succeed. Perhaps the existing packages are/were cached by some other build or action, and we've been getting lucky?
There was a problem hiding this comment.
the type check does not need pkgs to be built afaik
There was a problem hiding this comment.
Both of the image example scripts fail with a v0-side server error on the v5 branch, but they work on ToT. Are there known image attachment issues, else I'll debug further with @ctate
packages/vercel/package.json
Outdated
| @@ -0,0 +1,66 @@ | |||
| { | |||
| "name": "@ai-sdk/vercel", | |||
| "version": "0.0.0", | |||
There was a problem hiding this comment.
1.0.0-alpha.4
files under /.changeset might also need updates, and there are other link files (search for how other provider pkgs are referenced)
Background
Port of #6419
Vercel is adding an API for the v0 model per https://vercel.com/docs/v0/api and an AI SDK provider would make it easier for developers to interact with it.
Summary
Added an initial provider for the Vercel API.
Verification
Added examples across several features and executed end to end manually.
Tasks
pnpm changesetin the project root)pnpm prettier-fixin the project root)