Skip to content

Conversation

sitatec
Copy link

@sitatec sitatec commented Mar 29, 2025

Currently, if you try to stream files you get a FileOutput instance in the following state:

FileOutput {
  locked: false,
  [state]: 'errored',
  [supportsBYOB]: false,
  [length]: undefined
}

This is because a { data, fetch } object is passed to createFileOutput, which expects a { url, fetch } object.

I also noticed that FileOutput is always used for streaming, so I added the useFileOutput option to the *stream function and set the value of Replicate.useFileOutput as default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant