list_models | R Documentation |
List models that are available locally
list_models(
output = c("df", "resp", "jsonlist", "raw", "text"),
endpoint = "/api/tags",
host = NULL
)
output |
The output format. Default is "df". Other options are "resp", "jsonlist", "raw", "text". |
endpoint |
The endpoint to get the models. Default is "/api/tags". |
host |
The base URL to use. Default is NULL, which uses Ollama's default base URL. |
A response in the format specified in the output parameter.
list_models() # returns dataframe
list_models("df") # returns dataframe
list_models("resp") # httr2 response object
list_models("jsonlist")
list_models("raw")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.