Skip to contents

Verify whether the Ollama backend is properly installed and running by testing the connection. If successful, retrieve and print the list of available local models.

Usage

check_ollama(verbose = TRUE)

Arguments

verbose

Logical. Should informative messages and the list of available models be printed to the console? Default is TRUE.

Value

Logical TRUE if Ollama is installed, running, and at least one model is available; otherwise FALSE.

Details

The function calls ollamar::test_connection() to verify the Ollama service is running, then calls ollamar::list_models() to check for installed local models. If verbose, it prints detailed diagnostic messages and the model names.

Examples

if (FALSE) { # \dontrun{
check_ollama()
} # }