using System.Text.Json; using System.Text.Json.Serialization; namespace AIStudio.Provider.OpenAI; /// /// The delta text of a choice. /// public sealed record ChatCompletionDelta { [JsonPropertyName("content")] public JsonElement? RawContent { get; init; } [JsonIgnore] public string Content => ChatCompletionContent.GetText(this.RawContent) ?? string.Empty; }