check_ollama_connectivity

Function check_ollama_connectivity 

Source
pub async fn check_ollama_connectivity(base_url: &str) -> bool
Expand description

Ping the Ollama endpoint to verify it is reachable.

Issues a lightweight GET /api/tags with a short timeout. Returns true only on a successful HTTP response.

§Arguments