Class PushModelRequest
- Namespace
- OllamaSharp.Models
- Assembly
- OllamaSharp.dll
Upload a model to a model library. Requires registering for ollama.ai and adding a public key first.
Ollama API docs
public class PushModelRequest : OllamaRequest
- Inheritance
-
PushModelRequest
- Inherited Members
Properties
Insecure
Gets or sets a value indicating whether to allow insecure connections to the library. Only use this if you are pulling from your own library during development.
[JsonPropertyName("insecure")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? Insecure { get; set; }
Property Value
- bool?
Model
Gets or sets the name of the model to push in the form of namespace/model:tag.
[JsonPropertyName("model")]
public string? Model { get; set; }
Property Value
Stream
Gets or sets a value indicating whether to stream the response.
[JsonPropertyName("stream")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? Stream { get; set; }
Property Value
- bool?