V2 / df3fc286644d
ChatRequest.cs
Lilith/Core/Chat/ChatRequest.cs
Changed in this versionCS
using System.Text.Json.Serialization;
namespace Lilith.Core.Chat;
internal record ChatRequest(
[property: JsonPropertyName("model")] string Model,
[property: JsonPropertyName("messages")] List<ChatMessage> Messages,
[property: JsonPropertyName("stream")] bool Stream,
[property: JsonPropertyName("options")] ChatOptions? Options = null,
[property: JsonPropertyName("tools"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] object[]? Tools = null);