% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api_llamacpp.R
\name{llamacpp_health}
\alias{llamacpp_health}
\title{Check Health of the llama.cpp Server}
\usage{
llamacpp_health(
  .server = Sys.getenv("LLAMACPP_SERVER", "http://localhost:8080"),
  .timeout = 10
)
}
\arguments{
\item{.server}{Base URL of the llama.cpp server. Defaults to \code{LLAMACPP_SERVER}
env var, falling back to \code{"http://localhost:8080"}.}

\item{.timeout}{Request timeout in seconds (default: 10).}
}
\value{
A named list with at least a \code{status} element.
}
\description{
Calls the \verb{/health} endpoint of a running llama.cpp server.
Returns the status string (\code{"ok"}, \code{"loading model"}, \code{"no model loaded"},
or \code{"error"}) along with the full parsed response body as a named list.
}
