Push or upload a model to an Ollama model library. Requires registering for ollama.ai and adding a public key first.
Usage
push(
name,
insecure = FALSE,
stream = FALSE,
output = c("resp", "jsonlist", "raw", "text", "df"),
endpoint = "/api/push",
host = NULL
)
Arguments
- name
A character string of the model name to upload, in the form of
<namespace>/<model>:<tag>
- 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.