File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,12 @@ console.log(prediction.output)
6565const replicate = new Replicate (options);
6666```
6767
68- | name | type | description |
69- | ------------------- | ------ | --------------------------------------------------------------------------------- |
70- | ` options.auth ` | string | ** Required** . API access token |
71- | ` options.userAgent ` | string | Identifier of your app. Defaults to ` replicate-javascript/${packageJSON.version} ` |
72- | ` options.baseUrl ` | string | Defaults to https://api.replicate.com/v1 |
68+ | name | type | description |
69+ | ------------------- | -------- | --------------------------------------------------------------------------------- |
70+ | ` options.auth ` | string | ** Required** . API access token |
71+ | ` options.userAgent ` | string | Identifier of your app. Defaults to ` replicate-javascript/${packageJSON.version} ` |
72+ | ` options.baseUrl ` | string | Defaults to https://api.replicate.com/v1 |
73+ | ` options.fetch ` | function | Fetch function to use. Defaults to ` globalThis.fetch ` |
7374
7475### ` replicate.models.get `
7576
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class Replicate {
3030 * @param {string } options.auth - Required. API access token
3131 * @param {string } options.userAgent - Identifier of your app
3232 * @param {string } [options.baseUrl] - Defaults to https://api.replicate.com/v1
33- * @param {Function } [options.fetch] - Defaults to native fetch
33+ * @param {Function } [options.fetch] - Fetch function to use. Defaults to `globalThis. fetch`
3434 */
3535 constructor ( options ) {
3636 this . auth = options . auth ;
You can’t perform that action at this time.
0 commit comments