Files
gott/Models/ChatModels.cs
T

23 lines
492 B
C#

using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace Gott.Models;
public class ChatMessage
{
[JsonPropertyName("role")]
public string Role { get; set; } = "";
[JsonPropertyName("content")]
public string Content { get; set; } = "";
}
public class ChatRequest
{
[JsonPropertyName("messages")]
public List<ChatMessage> Messages { get; set; } = new();
[JsonPropertyName("sessionId")]
public string SessionId { get; set; } = "";
}