Bug Report
Defined property
[JsonInclude]
[JsonPropertyName("delta")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string Delta
{
get => delta;
internal set
{
if (value == null)
{
delta = null;
}
else
{
//delta += value; <<<<< this is wrong for text content, it appends deltas together
delta = value; <<<< should be this
}
}
}
Explanation
Delta is supposed to be the only difference from the previous response. The current implementation has the Text and Delta properties with the same value. This implementation introduces need for an additional "token" implementation for streaming responses. All other "Delta" response types have proper implementation of the property, except for TextContent.
Bug Report
Defined property
Explanation
Delta is supposed to be the only difference from the previous response. The current implementation has the Text and Delta properties with the same value. This implementation introduces need for an additional "token" implementation for streaming responses. All other "Delta" response types have proper implementation of the property, except for TextContent.