ps: List models that are currently loaded into memory

View source: R/ollama.R

psR Documentation

List models that are currently loaded into memory

Description

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


ps("text")


ollamar documentation built on April 3, 2025, 8:31 p.m.