create | R Documentation |
It is recommended to set modelfile
to the content of the Modelfile rather than just set path.
create(
name,
modelfile = NULL,
stream = FALSE,
path = NULL,
endpoint = "/api/create",
host = NULL
)
name |
Name of the model to create. |
modelfile |
Contents of the Modelfile as character string. Default is NULL. |
stream |
Enable response streaming. Default is FALSE. |
path |
The path to the Modelfile. Default is NULL. |
endpoint |
The endpoint to create the model. Default is "/api/create". |
host |
The base URL to use. Default is NULL, which uses Ollama's default base URL. |
A response in the format specified in the output parameter.
create("mario", "FROM llama3\nSYSTEM You are mario from Super Mario Bros.")
generate("mario", "who are you?", output = "text") # model should say it's Mario
delete("mario") # delete the model created above
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.