Skip to contents

List models that are currently loaded into memory

Usage

ps(
  output = c("df", "resp", "jsonlist", "raw", "text"),
  endpoint = "/api/ps",
  host = NULL
)

Arguments

output

The output format. Default is "df". Supported formats are "df", "resp", "jsonlist", "raw", and "text".

endpoint

The endpoint to list the running models. Default is "/api/ps".

host

The base URL to use. Default is NULL, which uses Ollama's default base URL.

Value

A response in the format specified in the output parameter.

References

API documentation

Examples

if (FALSE) { # test_connection()$status_code == 200
ps("text")
}