ollama-kit
Thin layer on ollama-rs: configured reqwest, optional call / call_stream (timeouts, concurrency, retries), and ensure for βis this model local?β (lists; may pull only when auto_pull + Development). Does not start Ollama.
Cargo.toml
= "0.2"
= { = "0.2", = ["stream"] }
API sketch
OllamaRuntime::new + RuntimeConfig |
URL, timeouts, auth; rejects Production + auto_pull. |
ensure |
List local names; pull only if auto_pull and Development. |
auto_pull / mode |
Getters mirroring [RuntimeConfig]. |
call / call_stream |
Guarded ollama-rs calls. |
client / guard |
Unguarded; use guard().run for Fn() shapes. |
Example
use Duration;
use ;
async
Docs / license
cargo doc. MIT β LICENSE.