Backend Refactoring: Models, Services, Endpoints aufgeteilt

This commit is contained in:
Meleki committed 2026-02-26 14:47:10 +01:00
1 parent fde6b51b1b
commit 5f210323fd
5 files changed
+609 -535

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
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; } = "";
}