Class CreateModelRequest
Inheritance
object
RequestBody
CreateModelRequest
Namespace: Glitch9.AIDevKit.Ollama
Assembly: .dll
Syntax
public class CreateModelRequest : RequestBody
Properties
Adapters
Optional. LORA adapters to apply (filename to SHA256 hash).
Declaration
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
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
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
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
public List<ChatMessage> Messages { get; set; }
Property Value
Type | Description |
---|---|
List<ChatMessage> |
Model
Required. Name of the model to create.
Declaration
public Model Model { get; set; }
Property Value
Type | Description |
---|---|
Model |
Parameters
Optional. Parameters to configure the model.
Declaration
public ModelOptions Parameters { get; set; }
Property Value
Type | Description |
---|---|
ModelOptions |
Quantize
Optional. Type of quantization to apply to the model (e.g. q4_K_M).
Declaration
public string Quantize { get; set; }
Property Value
Type | Description |
---|---|
string |
Stream
Optional. If false, the response will be returned as a single object.
Declaration
public bool? Stream { get; set; }
Property Value
Type | Description |
---|---|
bool? |
System
Optional. System prompt for the model.
Declaration
public string System { get; set; }
Property Value
Type | Description |
---|---|
string |
Template
Optional. Prompt template for the model.
Declaration
public string Template { get; set; }
Property Value
Type | Description |
---|---|
string |