Open zeke opened 7 months ago
Turns out this is blocked by the API itself. It's not currently possible to fetched another user's shared prediction via API.
Internal issue to track this: https://linear.app/replicate/issue/PRO-48/get-shared-predictions-via-the-api
TLDR
replicate show
andreplicate scaffold
works for predictions owned by my token, but not for any other predictions, even if they're shared.I'm not sure if this is a regression, or if it has never worked for non-owners.
Long story
I tried running the scaffold example in the README
I can see that prediction on the web, even in an incognito window: https://replicate.com/p/jpgp263bdekvxileu2ppsy46v4
But when I tried to scaffold from it, I get an error:
Sometimes zsh is a bit finicky about unquoted strings, so I tried quoting the URL:
Then I tried just the prediction id, but still no joy:
My own prediction works
So then I thought.. maybe I'm not authenticated?
But I can run the scaffold command for my own predictions, created with my
zeke
account on Replicate:A new shared prediction that I don't own doesn't work
Next I created a prediction from one of my orgs (
replicate
), then shared it: https://replicate.com/p/elqle2bbcval7o53g7w5wpub4uBut using the CLI with my personal token (not the org token), it fails:
Version
cc @replicate/product @replicate/hackers