Class CreateModelRequest
Implements
Inherited Members
Namespace: Glitch9.AIDevKit.Ollama
Assembly: Glitch9.AIDevKit.Provider.Ollama.dll
Syntax
public class CreateModelRequest : IJsonRequest
Properties
| Edit this page View SourceAdapters
Optional. LORA adapters to apply (filename to SHA256 hash).
Declaration
[JsonProperty("adapters")]
public Dictionary<string, string> Adapters { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
Files
Optional. Files to build the model from (filename to SHA256 hash).
Declaration
[JsonProperty("files")]
public Dictionary<string, string> Files { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
From
Optional. Name of an existing model to create the new model from.
Declaration
[JsonProperty("from")]
public string From { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
License
Optional. License or licenses for the model. Can be a string or list of strings.
Declaration
[JsonProperty("license")]
public StringOr<string> License { get; set; }
Property Value
| Type | Description |
|---|---|
| StringOr<string> |
Messages
Optional. A list of chat messages used to create a conversation.
Declaration
[JsonProperty("messages")]
public List<Message> Messages { get; set; }
Property Value
| Type | Description |
|---|---|
| List<Message> |
Model
Required. Name of the model to create.
Declaration
[JsonProperty("model")]
public Model Model { get; set; }
Property Value
| Type | Description |
|---|---|
| Model |
Parameters
Optional. Parameters to configure the model.
Declaration
[JsonProperty("parameters")]
public OllamaModelOptions Parameters { get; set; }
Property Value
| Type | Description |
|---|---|
| OllamaModelOptions |
Quantize
Optional. Type of quantization to apply to the model (e.g. q4_K_M).
Declaration
[JsonProperty("quantize")]
public string Quantize { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Stream
Optional. If false, the response will be returned as a single object.
Declaration
[JsonProperty("stream")]
public bool? Stream { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
System
Optional. System prompt for the model.
Declaration
[JsonProperty("system")]
public string System { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Template
Optional. Prompt template for the model.
Declaration
[JsonProperty("template")]
public string Template { get; set; }
Property Value
| Type | Description |
|---|---|
| string |