Skip to content

use new client API #25

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 1 commit into from
Mar 23, 2023
Merged

use new client API #25

merged 1 commit into from
Mar 23, 2023

Conversation

zeke
Copy link
Member

@zeke zeke commented Mar 23, 2023

This PR is an overhaul of the JavaScript client API. This change is motivated by two main goals:

  • Creating a high-level replicate.run() method that has a similiar signature and similar behavior across all of our client libraries. See Python and Swift equivalents in progress.
  • Creating lower-level methods that align with the operations defined in Replicate's OpenAPI schema, e.g. replicate.models.get and replicate.predictions.list

cc @bfirsh @erbridge @gr2m @mattt

@zeke zeke requested review from bfirsh and mattt March 23, 2023 20:06
Co-authored-by: Zeke Sikelianos <zeke@sikelianos.com>
Co-authored-by: Ben Firshman <ben@firshman.com>
Copy link
Member

@bfirsh bfirsh left a comment

Choose a reason for hiding this comment

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

Readme could do with work but we can fix up later.

@zeke zeke merged commit 5a033d0 into main Mar 23, 2023
@zeke zeke deleted the new-client-api branch March 23, 2023 20:20
@zeke
Copy link
Member Author

zeke commented Mar 23, 2023

$ npx np minor
		
Commits:
- use new client API (#25)  5a033d0
- add a contributing guide (#23)  6fa9006

  ✔ Prerequisite check
  ✔ Prerequisite check
  ✔ Git
  ✔ Installing dependencies using npm
  ✔ Running tests using npm
  ✔ Bumping version using npm
  ✔ Publishing package using npm
  ✔ Pushing tags
  ✔ Creating release draft on GitHub

 replicate 0.6.0 published 🎉

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.

3 participants