pull {ollamar}R Documentation

Pull/download a model

Description

See https://ollama.com/library for a list of available models. Use the list_models() function to get the list of models already downloaded/installed on your machine.

Usage

pull(model, stream = TRUE, endpoint = "/api/pull")

Arguments

model

A character string of the model name such as "llama3".

stream

Enable response streaming. Default is TRUE.

endpoint

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

Value

A httr2 response object.

Examples


pull("llama3")


[Package ollamar version 1.1.1 Index]