SIGN IN SIGN UP

Add support for files API endpoints (#184)

* Add support for files API endpoints

* Apply suggestions from code review

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

* Remove prepareInputs in favor of FileEncodingStrategy

This allows the user to determine if file uploads, falling back to
base64 should be used or just sticking to one approach.

The tests have been updated to validate the file upload payload and
to ensure the url is correctly passed to the prediction create method.

* Remove replicate.files API

* Tell Biome to ignore .wrangler directory

---------

Co-authored-by: Aron Carroll <aron@replicate.com>
M
Mattt committed
cc3d281afb39834822b2be5911b147c2b8a269e0
Parent: 87bd3ab
Committed by GitHub <noreply@github.com> on 5/22/2024, 9:04:30 PM