Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/openai/streaming.ts>Stream#tee

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

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

Returns

[Stream<Item>, Stream<Item>]