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
//! Ollama Registry Client
//!
//! Downloads and caches models from Ollama's registry (registry.ollama.ai).
//! Provides full compatibility with Ollama's model naming and configuration.
//!
//! ## Model Specification Formats
//!
//! ```text
//! # Official library models
//! llama3 -> registry.ollama.ai/library/llama3:latest
//! llama3:1b -> registry.ollama.ai/library/llama3:1b
//! llama3:70b-instruct -> registry.ollama.ai/library/llama3:70b-instruct
//!
//! # User models
//! user/mymodel:v1 -> registry.ollama.ai/user/mymodel:v1
//!
//! # Explicit ollama: prefix
//! ollama:llama3:1b -> registry.ollama.ai/library/llama3:1b
//! ```
pub use *;
pub use *;
/// Ollama registry URL
const OLLAMA_REGISTRY_URL: &str = "https://registry.ollama.ai";
/// Cache directory for Ollama models
const OLLAMA_CACHE_DIR: &str = "ollama";
/// Layer media types
pub const LAYER_MODEL: &str = "application/vnd.ollama.image.model";
pub const LAYER_TEMPLATE: &str = "application/vnd.ollama.image.template";
pub const LAYER_PARAMS: &str = "application/vnd.ollama.image.params";
pub const LAYER_SYSTEM: &str = "application/vnd.ollama.image.system";
pub const LAYER_PROJECTOR: &str = "application/vnd.ollama.image.projector";
pub const LAYER_LICENSE: &str = "application/vnd.ollama.image.license";
pub const LAYER_MESSAGES: &str = "application/vnd.ollama.image.messages";