Skip to contents

Download a model from the ollama library. Cancelled pulls are resumed from where they left off, and multiple calls will share the same download progress.

Usage

ollama_pull_model(name, insecure = FALSE, stream = TRUE)

Arguments

name

Name of the model to pull

insecure

(optional) allow insecure connections to the library. Only use this if you are pulling from your own library during development.

stream

(optional) if FALSE the response will be returned as a single response object, rather than a stream of objects

Value

None

Examples

if (FALSE) {
ollama_pull_model("mistral")
ollama_pull_model("mistral", stream = FALSE)
}