async_openai/types/stream.rs
1#[cfg(not(target_family = "wasm"))]
2pub type StreamResponse<T> =
3 std::pin::Pin<Box<dyn futures::Stream<Item = Result<T, crate::error::OpenAIError>> + Send>>;
4
5#[cfg(target_family = "wasm")]
6pub type StreamResponse<T> =
7 std::pin::Pin<Box<dyn futures::Stream<Item = Result<T, crate::error::OpenAIError>>>>;