Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.45.0/streaming.ts";

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

Returns

[Stream<Item>, Stream<Item>]