Function EventStream

  • 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.

    Parameters

    Returns ReadableStream<Uint8Array>

Generated using TypeDoc