Skip to content

webhook support #17

@zeke

Description

@zeke

I would like to be able to specify a webhook URL and webhook_events_filter when creating predictions with the predict() or createPrediction() methods.

Based on the current API, maybe that could work something like this:

const prediction = await replicate
  .model("owner/model:version")
  .createPrediction(inputs, {webhook, webhook_eventsFilter});

// ☝🏼 Don't actually know if this is the signature we want
// Just want to illustrate that we need to pass more than `inputs`.

cc @erbridge @gr2m

Metadata

Metadata

Assignees

No one assigned

    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