push | R Documentation |
Push or upload a model to an Ollama model library. Requires registering for ollama.ai and adding a public key first.
push(
name,
insecure = FALSE,
stream = FALSE,
output = c("resp", "jsonlist", "raw", "text", "df"),
endpoint = "/api/push",
host = NULL
)
name |
A character string of the model name to upload, in the form of |
insecure |
Allow insecure connections. Only use this if you are pushing to your own library during development. Default is FALSE. |
stream |
Enable response streaming. Default is FALSE. |
output |
The output format. Default is "resp". Other options are "jsonlist", "raw", "text", and "df". |
endpoint |
The endpoint to push the model. Default is "/api/push". |
host |
The base URL to use. Default is NULL, which uses Ollama's default base URL. |
A httr2 response object.
push("mattw/pygmalion:latest")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.