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 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 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.

tokio stream?
tokio-stream stream?
scraper function-calling?

Enables scraper ^0.19.0

text-splitter function-calling?

Enables text-splitter ^0.13.1

regex function-calling?