import { ChatCompletionStream } from "https://deno.land/x/openai@v4.28.4/lib/ChatCompletionStream.ts";
Intended for use on the frontend, consuming a stream produced with
.toReadableStream()
on the backend.
Note that messages sent to the model do not appear in .on('message')
in this context.
Parameters
stream: ReadableStream