SIGN IN SIGN UP

Fix url key of createFileOutput options for streaming (#350)

Fix bug with broken `FileOutput` object being created as part of the streaming API as the wrong value for URL was passed to the constructor. This also extends the `replicate.stream()` interface to accept a `useFileOutput` configuration object.

Lastly, we now use the stream URL itself to detect if we should convert URL objects into `FileOutput`. 

---------

Co-authored-by: Aron Carroll <aron@replicate.com>
S
Sita Bérété committed
6e544d017a37962d16013b33a45767ae079f6346
Parent: 0eac811
Committed by GitHub <noreply@github.com> on 11/14/2025, 3:20:44 PM