Skip to content

Commit 720f786

Browse files
authored
Correct documentaiton for wait mode (#337)
1 parent 0b7c8eb commit 720f786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ const output = await replicate.run(identifier, options, progress);
343343
| `identifier` | string | **Required**. The model version identifier in the format `{owner}/{name}:{version}`, for example `stability-ai/sdxl:8beff3369e81422112d93b89ca01426147de542cd4684c244b673b105188fe5f` |
344344
| `options.input` | object | **Required**. An object with the model inputs. |
345345
| `options.wait` | object | Options for waiting for the prediction to finish |
346-
| `options.wait.type` | `"poll" \| "block"` | `"block"` holds the request open, `"poll"` makes repeated requests to fetch the prediction. Defaults to `"block"` |
346+
| `options.wait.mode` | `"poll" \| "block"` | `"block"` holds the request open, `"poll"` makes repeated requests to fetch the prediction. Defaults to `"block"` |
347347
| `options.wait.interval` | number | Polling interval in milliseconds. Defaults to 500 |
348348
| `options.wait.timeout` | number | In `"block"` mode determines how long the request will be held open until falling back to polling. Defaults to 60 |
349349
| `options.webhook` | string | An HTTPS URL for receiving a webhook when the prediction has new output |

0 commit comments

Comments
 (0)