Cargo Features

[dependencies]
async-openai = { version = "0.26.0", default-features = false, features = ["rustls", "rustls-webpki-roots", "native-tls", "native-tls-vendored", "realtime"] }
default = rustls

The rustls feature is set by default whenever async-openai is added without default-features = false somewhere in the dependency tree.

rustls default

Enable rustls for TLS support

Enables rustls-tls-native-roots of reqwest

rustls-webpki-roots

Enable rustls and webpki-roots

Enables rustls-tls-webpki-roots of reqwest

native-tls

Enable native-tls for TLS support

Enables native-tls of reqwest

native-tls-vendored

Remove dependency on OpenSSL

Enables native-tls-vendored of reqwest

realtime

Enables tokio-tungstenite

Affects types::realtime