Skip to contents

Creates a model with another name from an existing model.

Usage

copy(source, destination, endpoint = "/api/copy", host = NULL)

Arguments

source

The name of the model to copy.

destination

The name for the new model.

endpoint

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

host

The base URL to use. Default is NULL, which uses Ollama's default base URL.

Value

A httr2 response object.

References

API documentation

Examples

if (FALSE) { # test_connection()$status_code == 200
copy("llama3", "llama3_copy")
delete("llama3_copy")  # delete the model was just got copied
}