Closed MaxLeiter closed 11 months ago
@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 ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
llama-chat | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 8, 2023 4:50pm |
Switched to npm and resolved the conflict 👍
Now the build is failing with Missing required parameter: auth
from the Replicate JavaScript client constructor.
That's because process.env.REPLICATE_API_TOKEN
is not present in the build environment.
I can reproduce this locally with:
REPLICATE_API_TOKEN="" npm t
And I was able to get around it like this:
REPLICATE_API_TOKEN="r8_fake_token" npm t
We could update scripts.test
to have that env assignment as a prefix, but it feels a bit unsavory. 🤔
@mattt any thoughts on what would be the best way to handle this?
@zeke This is now fixed in v0.15.1. See https://github.com/replicate/replicate-javascript/pull/120
@MaxLeiter you wanna npm install replicate@latest
and give this another go?
I haven't completely tested this but it should be a good PoC if anyone wants to pick it up.
ReplicateStream
anduseCompletion
utilities. 3a. It'd be nice to use theuseChat
hook instead but that would be a more invasive change.