Skip to content

Commit

Permalink
Merge pull request #66 from replicate/success-only-hook
Browse files Browse the repository at this point in the history
Only save predictions on completion
  • Loading branch information
aron authored Dec 8, 2023
2 parents d4b1b5a + 00947bd commit f4a7dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/predictions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default async function handler(req, res) {
},
version: modelObject.version,
webhook: `${WEBHOOK_HOST}/api/replicate-webhook?${searchParams}`,
webhook_events_filter: ["start", "completed"],
webhook_events_filter: ["completed"],
});

const headers = {
Expand Down

1 comment on commit f4a7dd5

@vercel
Copy link

@vercel vercel bot commented on f4a7dd5 Dec 8, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.