dreamingtulpa / replicate-ruby

Replicate Ruby client
60 stars 6 forks source link

`webhook_completed` is deprectated #9

Open marckohlbrugge opened 6 months ago

marckohlbrugge commented 6 months ago

If you’re using the old webhook_completed, you’ll still get the same webhooks as before, but we recommend updating to use the new webhook and [webhook_events_filter] properties.

Source: https://replicate.com/changelog/2023-02-10-improved-webhook-events-and-event-filtering

Up-to-date documentation about webhooks and webhook_events_filter:

https://replicate.com/docs/reference/http#predictions.create--webhook

rameerez commented 1 month ago

I've been looking through the codebase and 30970f0 seems to address this partially. A new version 0.2.3 containing this commit seems to be already published on RubyGems so the new webhook is used in production now – but no new version has been tagged here on the repo yet (latest here as of now: 0.2.2)

webhook_events_filter doesn't seem to be implemented yet, though.