feat: add models for streaming messages
This commit is contained in:
@@ -10,42 +10,42 @@ public class ChatResponse
|
||||
/// <summary>
|
||||
/// Gets the ID of the chat response.
|
||||
/// </summary>
|
||||
public string Id { get; set; } = string.Empty;
|
||||
public string Id { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the model used for the chat response.
|
||||
/// </summary>
|
||||
public string Model { get; set; } = string.Empty;
|
||||
public string Model { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the role of the chat response.
|
||||
/// </summary>
|
||||
public string Role { get; set; } = string.Empty;
|
||||
public string Role { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the stop reason of the chat response.
|
||||
/// </summary>
|
||||
[JsonPropertyName("stop_reason")]
|
||||
public string StopReason { get; set; } = string.Empty;
|
||||
public string StopReason { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the stop sequence of the chat response.
|
||||
/// </summary>
|
||||
[JsonPropertyName("stop_sequence")]
|
||||
public string StopSequence { get; set; } = string.Empty;
|
||||
public string StopSequence { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type of the chat response.
|
||||
/// </summary>
|
||||
public string Type { get; set; } = string.Empty;
|
||||
public string Type { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the usage of the chat response.
|
||||
/// </summary>
|
||||
public ChatUsage Usage { get; set; } = new();
|
||||
public ChatUsage Usage { get; init; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Gets the contents of the chat response.
|
||||
/// </summary>
|
||||
public List<Content> Content { get; set; } = [];
|
||||
public List<Content> Content { get; init; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user