SIGN IN SIGN UP

Add `wait` parameter to prediction creation methods (#308)

* Add block parameter to prediction creation methods

* Add support for block: or wait: true to run

* Remove unused stream parameter

* Apply suggestions from code review

Co-authored-by: Aron Carroll <aron@replicate.com>

* Replace X-Sync header with Prefer: wait

* Rename block to wait

Update type definitions to capture expectations of wait parameter in run

* Normalize wait value to nonzero integer

---------

Co-authored-by: Aron Carroll <aron@replicate.com>
M
Mattt committed
173b31da148096e3ddfd7252564c68ac21c1bd99
Parent: 7f02a64
Committed by GitHub <noreply@github.com> on 9/25/2024, 6:35:40 PM