Use Vercel AI SDK and Next.js App Directory#19
Conversation
|
@MaxLeiter is attempting to deploy a commit to the Replicate Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
zeke
left a comment
There was a problem hiding this comment.
I took this for a spin locally and it worked like a charm. I didn't inspect all the changes closely, but overall this looks good to me. 👍🏼
What do you think, @cbh123 and @fofr?
Couple little blockers:
npm ciis failing. Looks like there's an issue with the package lock. We generally use npm for Replicate demo projects, but I have no opposition to yarn or pnpm as long as we're consistent in the project.- Looks like there's a merge conflict.
|
Switched to npm and resolved the conflict 👍 |
|
Now the build is failing with That's because I can reproduce this locally with: And I was able to get around it like this: We could update @mattt any thoughts on what would be the best way to handle this? |
|
@zeke This is now fixed in v0.15.1. See replicate/replicate-javascript#120 |
|
@MaxLeiter you wanna |
I haven't completely tested this but it should be a good PoC if anyone wants to pick it up.
ReplicateStreamanduseCompletionutilities.3a. It'd be nice to use the
useChathook instead but that would be a more invasive change.