Class GenerateResponseStream
- Namespace
- OllamaSharp.Models
- Assembly
- OllamaSharp.dll
The response from the /api/generate endpoint when streaming is enabled
public class GenerateResponseStream
- Inheritance
-
GenerateResponseStream
- Derived
- Inherited Members
Properties
CreatedAt
Gets or sets the time the response was generated.
[JsonIgnore]
public DateTimeOffset? CreatedAt { get; set; }
Property Value
CreatedAtString
Gets or sets the time the response was generated.
[JsonPropertyName("created_at")]
public string? CreatedAtString { get; set; }
Property Value
Done
Whether the response is complete
[JsonPropertyName("done")]
public bool Done { get; set; }
Property Value
Model
The model that generated the response
[JsonPropertyName("model")]
public string Model { get; set; }
Property Value
Response
The response generated by the model
[JsonPropertyName("response")]
public string Response { get; set; }