Cargo Features

Ollama-rs has no features set by default.

[dependencies]
ollama-rs = { version = "0.1.9", features = ["stream", "rustls", "chat-history"] }
default

These default features are set whenever ollama-rs is added without default-features = false somewhere in the dependency tree.

Enables default-tls of reqwest

reqwest:

Note: this doesn't enable the 'native-tls' feature, which adds specific functionality for it.

stream = tokio, tokio-stream

Enables stream of reqwest

Affects chat::ChatMessageResponseStream, completion::GenerationResponseStream, create::CreateModelStatusStream, pull::PullModelStatusStream, push::PushModelStatusStream

rustls

Enables rustls-tls of reqwest

chat-history

Affects ollama-rs::history

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

tokio stream?
tokio-stream stream?