% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vlm-providers.R
\name{ollama_is_running}
\alias{ollama_is_running}
\title{Is the local Ollama HTTP API reachable?}
\usage{
ollama_is_running(url = NULL, timeout_s = 1.5)
}
\arguments{
\item{url}{Override URL to probe (default reads
\code{getOption("soilKey.ollama_url",
default = "http://127.0.0.1:11434/api/tags")}).}

\item{timeout_s}{Request timeout in seconds (default 1.5).}
}
\value{
Logical scalar.
}
\description{
Probes \code{http://127.0.0.1:11434/api/tags} (the standard Ollama
endpoint) with a short HTTP HEAD-style GET. Returns \code{TRUE}
only if the request returns HTTP 200 in under \code{timeout_s}
seconds. Used by \code{\link{vlm_pick_provider}} for the
\code{provider = "auto"} fallback chain. Override the URL via
\code{options(soilKey.ollama_url = "http://host:port")}.
}
