8000 Refactor PostNewPipeline to use Replicate public API by aron · Pull Request #2378 · replicate/cog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refactor PostNewPipeline to use Replicate public API #2378

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

Merged
merged 3 commits into from
May 30, 2025
Merged

Conversation

aron
Copy link
Contributor
@aron aron commented May 30, 2025

This follows the procedure for shipping an experimental "pipeline" model via the API used by other areas of the Replicate product.

We use the new cog.replicate.com/api/token/{account} endpoint to exchange the cog token for a short lived Replicate API token that is restricted only to read/write actions on model resources.

Usage:

cog push --x-pipeline r8.im/username/my-model

@aron aron force-pushed the cog-push-pipeline branch from 3a51a49 to d47da8b Compare May 30, 2025 15:02
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This same test exists three times in the codebase 😓

@aron
Copy link
Contributor Author
aron commented May 30, 2025

Urgh, I've got conflicts from the main branch due to the requirements changes.

aron added 3 commits May 30, 2025 16:52
This follows the procedure for shipping an experimental "pipeline" model
via the API used by other areas of the Replicate product.

We use the new cog.replicate.com/api/token/{account} endpoint to
exchange the cog token for a short lived Replicate API token that
is restricted only to read/write actions on model resources.
@aron aron force-pushed the cog-push-pipeline branch from 4a7dfa0 to 2931bf1 Compare May 30, 2025 16:06
@aron aron merged commit 2f94961 into main May 30, 2025
26 checks passed
@aron aron deleted the cog-push-pipeline branch May 30, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0