22 lines
569 B
C#
22 lines
569 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace BLAIzor.Models
|
|
{
|
|
public class ChatGPTContentResult : ChatGPTResultBase
|
|
{
|
|
|
|
[JsonConstructor]
|
|
public ChatGPTContentResult(string type, string text, string[] topics, Dictionary<string,string> photos)
|
|
: base(type, text)
|
|
{
|
|
Topics = topics;
|
|
Photos = photos;
|
|
}
|
|
[JsonPropertyName("topics")]
|
|
public string[] Topics { get; set; }
|
|
|
|
[JsonPropertyName("photos")]
|
|
public Dictionary<string, string> Photos { get; set; }
|
|
}
|
|
}
|