function randomStream(chunkTemplate) {
  return new Readable({
    read(size = 16) {
      const data = crypto.randomBytes(size)
      chunkTemplate.choices[0].delta.content = data.toString('base64')
      this.push('data: ' + JSON.stringify(chunkTemplate) + '\n\n')
    }
  }).pause()
}
Creates a stream that will stream an infinite number of OpenAI stream data
chunks.

@param {object} chunkTemplate An object that is shaped like an OpenAI stream
data object.
@returns {Readable} A paused stream.