async-openai 0.38.0

Rust library for OpenAI
Documentation
1
2
3
4
5
6
7
#[cfg(not(target_family = "wasm"))]
pub type StreamResponse<T> =
    std::pin::Pin<Box<dyn futures::Stream<Item = Result<T, crate::error::OpenAIError>> + Send>>;

#[cfg(target_family = "wasm")]
pub type StreamResponse<T> =
    std::pin::Pin<Box<dyn futures::Stream<Item = Result<T, crate::error::OpenAIError>>>>;