BoxedChatStream

Type Alias BoxedChatStream 

Source
pub type BoxedChatStream = Pin<Box<dyn Stream<Item = Result<ChatCompletionChunk>> + Send>>;
Expand description

Type alias for a boxed stream of chat completion chunks.

This allows returning either ChatCompletionStream or InterceptedStream from the same method based on whether interceptors are enabled.

Aliased Typeยง

pub struct BoxedChatStream { /* private fields */ }