[package] name = "ollama-rs" version = "0.2.1" edition = "2021" license-file = "LICENSE.md" description = "A Rust library for interacting with the Ollama API" repository = "https://github.com/pepperoni21/ollama-rs" readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] reqwest = { version = "0.12.4", default-features = false, features = ["json"] } serde = { version = "1", features = ["derive"] } serde_json = "1" tokio = { version = "1", features = ["full"], optional = true } tokio-stream = { version = "0.1.15", optional = true } async-trait = { version = "0.1.73" } url = "2" log = "0.4" scraper = { version = "0.19.0", optional = true } text-splitter = { version = "0.13.1", optional = true } regex = { version = "1.9.3", optional = true } async-stream = "0.3.5" [features] default = ["reqwest/default-tls"] stream = ["tokio-stream", "reqwest/stream", "tokio"] rustls = ["reqwest/rustls-tls"] chat-history = [] function-calling = ["scraper", "text-splitter", "regex", "chat-history"] [dev-dependencies] tokio = { version = "1", features = ["full"] } ollama-rs = { path = ".", features = [ "stream", "chat-history", "function-calling", ] } base64 = "0.22.0"