-
Notifications
You must be signed in to change notification settings - Fork 2.3k
feat (providers/vercel): initial vercel provider #6464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
.github/workflows/ci.yml
Outdated
@@ -100,6 +100,9 @@ jobs: | |||
- name: Install dependencies | |||
run: pnpm install --frozen-lockfile | |||
|
|||
- name: Build packages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the type check does not need pkgs to be built afaik
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 changeset
in the project root)pnpm prettier-fix
in the project root)