- Preparing search index...
- The search index is not available
openai-streams
- EventStream(stream: ReadableStream<Uint8Array>, options: OpenAIStreamOptions): ReadableStream<Uint8Array>
-
Parameters
-
stream: ReadableStream<Uint8Array>
-
Returns ReadableStream<Uint8Array>
A
ReadableStream
of server sent events from the given OpenAI API stream.Note
This can't be done via a generator while using
createParser
because there is no way to yield from within the callback.