26 lines
581 B
C#
26 lines
581 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("model")]
|
|
public string Model { get; set; } = "sonnet";
|
|
|
|
[JsonPropertyName("messages")]
|
|
public List<ChatMessage> Messages { get; set; } = new();
|
|
|
|
[JsonPropertyName("systemPrompt")]
|
|
public string SystemPrompt { get; set; } = "";
|
|
}
|