Cargo Features
Ollama-rs has no features set by default.
[dependencies]
ollama-rs = { version = "0.2.4", features = ["stream", "rustls", "headers", "tool-implementations", "macros"] }
- default
-
These default features are set whenever
ollama-rs
is added without
somewhere in the dependency tree.default-features = false 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
-
Affects
chat::ChatMessageResponseStream
,completion::GenerationResponseStream
,create::CreateModelStatusStream
,pull::PullModelStatusStream
,push::PushModelStatusStream
… - rustls
-
Enables rustls-tls of reqwest
- headers = http
-
Affects
ollama-rs::headers
… - tool-implementations = calc, html2md, regex, scraper, text-splitter
-
Affects
tools::implementations
… - macros = ollama-rs-macros
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.