OllamaClient.createModel

Creates a new model on the Ollama server using a modelfile.

class OllamaClient
JSONValue
createModel
(
string name
,
string modelfile
)

Parameters

name string

The name of the new model.

modelfile string

The modelfile content defining the model.

Return Value

Type: JSONValue

A JSONValue object with creation status.

Meta