You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately it's unlikely that we can add something like that as JS doesn't always have file system access or a runtime independent way of writing files.
Currently, it's easy to stream in Python as per docs, but I haven't been able to pull it off in Node.
I'm curious what you've tried so far in case there's any docs we could update?
We do have an example script here that shows how to stream the response to a file.
Confirm this is a feature request for the Node library and not the underlying OpenAI API.
Describe the feature or improvement you're requesting
Currently, it's easy to stream in Python as per docs, but I haven't been able to pull it off in Node. Concurrency works just great, tho.
we need a
response.stream_to_file("output.mp3")
Additional context
No response
The text was updated successfully, but these errors were encountered: