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
//! HTTP client for Ollama API
//!
//! This module provides the HTTP client implementation for interacting with
//! the Ollama API, including both async and sync (blocking) interfaces.
//!
//! # Components
//!
//! - [`ClientConfig`] - Configuration for the HTTP client
//! - [`OllamaClient`] - The main HTTP client
//! - [`OllamaApiAsync`] - Async API trait
//! - [`OllamaApiSync`] - Sync (blocking) API trait
//!
//! # Examples
//!
//! ## Async Usage
//!
//! ```no_run
//! use ollama_oxide::{OllamaClient, OllamaApiAsync};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = OllamaClient::default()?;
//! let version = client.version().await?;
//! println!("Version: {}", version.version);
//! Ok(())
//! }
//! ```
//!
//! ## Sync Usage
//!
//! ```no_run
//! use ollama_oxide::{OllamaClient, OllamaApiSync};
//!
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = OllamaClient::default()?;
//! let version = client.version_blocking()?;
//! println!("Version: {}", version.version);
//! Ok(())
//! }
//! ```
pub
pub use OllamaApiAsync;
pub use OllamaApiSync;
pub use OllamaClient;
pub use ClientConfig;
pub use ;