Skip to content

Make it hard to not pin a version #69

Closed

Description

@bfirsh

The default way of running a prediction should be by selecting a version, not by selecting a model.

We should remove the model.predict() method, and something like this should be the recommended way to run predictions:

replicate.predict(version="27b93a2413e7f36cd83da926f3656280b2931564ff050bf9575f1fdf9bcd7478", input={...})

This might need syncing up with a future javascript client library. Something that @zeke might be thinking about.

Activity

  1. self-assigned this
    on Feb 20, 2023
  2. zeke commented on Feb 20, 2023

    @zeke
    Member

    PRs in service of this:

  3. zeke commented on Feb 21, 2023

    @zeke
    Member

    Reopening because there's still stuff to do around this.

  4. reopened this on Feb 21, 2023
  5. zeke commented on Feb 21, 2023

    @zeke
  6. zeke commented on Feb 21, 2023

    @zeke
    Member

    Actually this issue is done. We not only made it hard to pin a version. We made it impossible. ✅

    Moving the conversation about API design to a followup issue: #72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions