function finiteStream() {
  return new Readable({
    read() {
      // This is how the data is streamed from openai
      for (let i = 0; i < chunks.length; i++) {
        const chunkString = JSON.stringify(chunks[i])
        this.push(`data: ${chunkString}\n\n`)
      }
      this.push('data: [DONE]\n\n')
      this.push(null)
    }
  }).pause()
}
Returns a stream that sends `chunks`
as OpenAI v5 data stream messages. This stream
has a finite number of messages that will be sent.

@returns {Readable} A paused stream.