Table of Contents

Class CreateModelRequest

public class CreateModelRequest : IJsonRequest
Inheritance
object
CreateModelRequest

Properties

Adapters

Optional. LORA adapters to apply (filename to SHA256 hash).

public Dictionary<string, string> Adapters { get; set; }

Property Value

Dictionary<string, string>

Files

Optional. Files to build the model from (filename to SHA256 hash).

public Dictionary<string, string> Files { get; set; }

Property Value

Dictionary<string, string>

From

Optional. Name of an existing model to create the new model from.

public string From { get; set; }

Property Value

string

License

Optional. License or licenses for the model. Can be a string or list of strings.

public StringOr<string> License { get; set; }

Property Value

StringOr<string>

Messages

Optional. A list of chat messages used to create a conversation.

public List<Message> Messages { get; set; }

Property Value

List<Message>

Model

Required. Name of the model to create.

public Model Model { get; set; }

Property Value

Model

Parameters

Optional. Parameters to configure the model.

public OllamaModelSettings Parameters { get; set; }

Property Value

OllamaModelSettings

Quantize

Optional. Type of quantization to apply to the model (e.g. q4_K_M).

public string Quantize { get; set; }

Property Value

string

Stream

Optional. If false, the response will be returned as a single object.

public bool? Stream { get; set; }

Property Value

bool?

System

Optional. System prompt for the model.

public string System { get; set; }

Property Value

string

Template

Optional. Prompt template for the model.

public string Template { get; set; }

Property Value

string