tapStream
tapStream(
stream,callback):IRChatStream
Defined in: streaming.ts:197
Tap into stream without modifying it.
Parameters
Section titled “Parameters”stream
Section titled “stream”Original stream
callback
Section titled “callback”(chunk) => void | Promise<void>
Function to call for each chunk
Returns
Section titled “Returns”Same stream