Cargo Features

ollama-native has no features set by default.

[dependencies]
ollama-native = { version = "1.0.2", features = ["stream", "model"] }
stream = tokio-stream

Enables stream of reqwest

Affects action::OllamaStream, action::IntoStream, push::PushModelStreamingResponse

model = tokio-util

Enables stream of reqwest

Affects abi::model, check_blob_exists::CheckBlobExistsRequest, copy::CopyModelRequest, create::CreateModelRequest, create::CreateModelResponse, delete::DeleteModelRequest, generate_embeddings::GenerateEmbeddingsRequest, generate_embeddings::GenerateEmbeddingsResponse, list_local::ListLocalModelsRequest, list_local::ListLocalModelsResponse, list_local::ModelInfo, list_running::ListRunningModelsRequest, list_running::ListRunningModelsResponse, list_running::ListRunningModelsInfo, model::ModelInfoDetail, pull::PullModelRequest, pull::PullModelResponse, pull::PullModelStreamingResponse, push::PushModelRequest, push::PushModelResponse

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 stream?
tokio-util model?