diff --git a/README.md b/README.md index cf12865..198c9dc 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,7 @@ This client includes a `validateWebhook` convenience function that you can use t To validate webhooks: 1. Check out the [webhooks guide](https://replicate.com/docs/webhooks) to get started. -1. [Retrieve your webhook signing secret](https://replicate.com/docs/webhooks#retrieving-the-webhook-signing-key) and store it in your enviroment. +1. [Retrieve your webhook signing secret](https://replicate.com/docs/webhooks#retrieving-the-webhook-signing-key) and store it in your environment. 1. Update your webhook handler to call `validateWebhook(request, secret)`, where `request` is an instance of a [web-standard `Request` object](https://developer.mozilla.org/en-US/docs/Web/API/object), and `secret` is the signing secret for your environment. Here's an example of how to validate webhooks using Next.js: @@ -364,7 +364,7 @@ Returns `Promise` which resolves with the output of running the model. > [!NOTE] > Currently the TypeScript return type of `replicate.run()` is `Promise` this is -> misleading as a model can return array types as well as primative types like strings, +> misleading as a model can return array types as well as primitive types like strings, > numbers and booleans. Example: