1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! # ollama-client
//!
//! A Rust client library for the [Ollama](https://ollama.com) API.
//!
//! Covers all Ollama API endpoints: chat, generate, embeddings, model management
//! (list, show, copy, delete, pull, push, create), running models, blobs, and version.
//!
//! ## Async usage
//!
//! ```no_run
//! use ollama_client::{OllamaClient, types::Message};
//!
//! # async fn example() -> ollama_client::Result<()> {
//! let client = OllamaClient::new();
//! let response = client.chat()
//! .model("gemma4")
//! .messages(vec![Message::user("Hello!")])
//! .send()
//! .await?;
//! println!("{}", response.message.content);
//! # Ok(())
//! # }
//! ```
//!
//! ## Blocking usage (feature `blocking`, enabled by default)
//!
//! ```no_run
//! use ollama_client::blocking::BlockingClient;
//! use ollama_client::types::Message;
//!
//! # fn example() -> ollama_client::Result<()> {
//! let client = BlockingClient::new();
//! let response = client.chat()
//! .model("gemma4")
//! .messages(vec![Message::user("Hello!")])
//! .send()?;
//! println!("{}", response.message.content);
//! # Ok(())
//! # }
//! ```
pub use ;
pub use ;
// M-TYPES-SEND: compile-time assertions that key types are Send + Sync.