V12 / ea1357ad1734
ChatRequest.cs
Lilith/Core/Chat/ChatRequest.cs
Unchanged from the preceding 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);