Search Results for

    Show / Hide Table of Contents

    Class CreateModelRequest

    Inheritance
    object
    CreateModelRequest
    Implements
    IJsonRequest
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Ollama
    Assembly: Glitch9.AIDevKit.Provider.Ollama.dll
    Syntax
    public class CreateModelRequest : IJsonRequest

    Properties

    | Edit this page View Source

    Adapters

    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>
    | Edit this page View Source

    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>
    | Edit this page View Source

    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
    | Edit this page View Source

    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>
    | Edit this page View Source

    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>
    | Edit this page View Source

    Model

    Required. Name of the model to create.

    Declaration
    [JsonProperty("model")]
    public Model Model { get; set; }
    Property Value
    Type Description
    Model
    | Edit this page View Source

    Parameters

    Optional. Parameters to configure the model.

    Declaration
    [JsonProperty("parameters")]
    public OllamaModelOptions Parameters { get; set; }
    Property Value
    Type Description
    OllamaModelOptions
    | Edit this page View Source

    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
    | Edit this page View Source

    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?
    | Edit this page View Source

    System

    Optional. System prompt for the model.

    Declaration
    [JsonProperty("system")]
    public string System { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Template

    Optional. Prompt template for the model.

    Declaration
    [JsonProperty("template")]
    public string Template { get; set; }
    Property Value
    Type Description
    string

    Implements

    IJsonRequest

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation