Uh oh!
There was an error while loading. Please reload this page.
Add wait parameter to prediction creation methods - #308
Conversation
aron
left a comment
There was a problem hiding this comment.
Is the intention here to roll this out quietly via the block param for testing?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
mattt
commented
Sep 25, 2024
Sort of. Because of how |
block parameter to prediction creation methodswait parameter to prediction creation methodsCo-authored-by: Aron Carroll <aron@replicate.com>
Update type definitions to capture expectations of wait parameter in run
eb34008 to
0c0245dCompare| stream?: boolean; | ||
| webhook?: string; | ||
| webhook_events_filter?: WebhookEventType[]; | ||
| block?: boolean; |
There was a problem hiding this comment.
I think I preferred the version we had that exposed wait here. Where wait was one of:
wait?: {mode: "block",timeout?: number}|{mode: "poll",interval?: number}This way we have only one param consistently, and it defaults to {mode: "block"}.
No description provided.