Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/streaming.ts>Stream#tee

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
method Stream.prototype.tee
import { Stream } from "https://deno.land/x/openai@v4.58.1/streaming.ts";

Splits the stream into two streams which can be independently read from at different speeds.

Returns

[Stream<Item>, Stream<Item>]