copy {ollamar}R Documentation

Copy a model

Description

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


copy("llama3", "llama3_copy")
delete("llama3_copy")  # delete the model was just got copied


[Package ollamar version 1.2.2 Index]