Skip to main content

Module ollama

Module ollama 

Source

Re-exports§

pub use client::OllamaClient;
pub use parser::pull_events_from_value;
pub use pull::CliPullProgressReporter;
pub use pull::OllamaPullEvent;
pub use pull::OllamaPullProgressReporter;
pub use pull::TuiPullProgressReporter;
pub use url::base_url_to_host_root;
pub use url::is_openai_compatible_base_url;

Modules§

client
parser
pull
url

Structs§

OllamaProvider
WireApiDetection
Result of detecting which wire API the Ollama server supports.

Enums§

OllamaWireApi
Wire protocol that the Ollama server supports. Based on OpenAI Codex’s WireApi enum.

Functions§

detect_wire_api
Detect which wire API the running Ollama server supports based on its version. Returns Ok(None) when the version endpoint is missing or unparsable; callers should keep the configured default in that case.
ensure_oss_ready
Prepare the local OSS environment when using Ollama.
fetch_ollama_models
Fetches available local Ollama models from the Ollama API endpoint