27 lines
470 B
C#
27 lines
470 B
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace BLAIzor.Models
|
|
{
|
|
|
|
public class ChatGPTResultBase
|
|
{
|
|
|
|
[JsonConstructor]
|
|
public ChatGPTResultBase(string type, string text)
|
|
{
|
|
Type = type;
|
|
Text = text;
|
|
}
|
|
|
|
[JsonPropertyName("type")]
|
|
public string? Type { get; set; }
|
|
|
|
[JsonPropertyName("text")]
|
|
public string? Text { get; set; }
|
|
|
|
|
|
}
|
|
|
|
}
|