← All source files

V18 / 8d896b8a86e5

ChatChunk.cs

Lilith/Core/Chat/ChatChunk.cs

Unchanged from the preceding version
CS
using System.Text.Json.Serialization;

namespace Lilith.Core.Chat;

public record ChatChunk(
    [property: JsonPropertyName("message")] ChatMessage? Message,
    [property: JsonPropertyName("done")] bool Done,
    [property: JsonPropertyName("prompt_eval_count")] int? PromptTokens,
    [property: JsonPropertyName("eval_count")] int? CompletionTokens);