Cargo Features
Ollama-rs has no features set by default.
[dependencies]
ollama-rs = { version = "0.2.1", features = ["stream", "rustls", "chat-history", "function-calling"] }
- 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
- chat-history function-calling?
-
Affects
ollama-rs::history
… - function-calling = chat-history, regex, scraper, text-splitter
-
Affects
generation::functions
…
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.