Skip to contents

Model information includes details, modelfile, template, parameters, license, system prompt.

Usage

show(
  name,
  verbose = FALSE,
  output = c("jsonlist", "resp", "raw"),
  endpoint = "/api/show",
  host = NULL
)

Arguments

name

Name of the model to show

verbose

Returns full data for verbose response fields. Default is FALSE.

output

The output format. Default is "jsonlist". Other options are "resp", "raw".

endpoint

The endpoint to show the model. Default is "/api/show".

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
# show("llama3") # returns jsonlist
show("llama3", output = "resp") # returns response object
}