@reactor/ai — collectstream
@reactor/ai / collectStream
Function: collectStream()
Section titled “Function: collectStream()”collectStream(
stream):Promise<ChatCompletionResponse>
Defined in: index.ts:299
Collect all chunks from a stream into a single response.
Parameters
Section titled “Parameters”stream
Section titled “stream”Returns
Section titled “Returns”Promise<ChatCompletionResponse>