Table of Contents

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

DateTimeOffset?

CreatedAtString

Gets or sets the time the response was generated.

[JsonPropertyName("created_at")]
public string? CreatedAtString { get; set; }

Property Value

string

Done

Whether the response is complete

[JsonPropertyName("done")]
public bool Done { get; set; }

Property Value

bool

Model

The model that generated the response

[JsonPropertyName("model")]
public string Model { get; set; }

Property Value

string

Response

The response generated by the model

[JsonPropertyName("response")]
public string Response { get; set; }

Property Value

string