Create CompletionChatMessage.cs

This commit is contained in:
Raphael Moreira 2023-10-23 16:15:40 -03:00 committed by GitHub
parent d2d863d68e
commit 9425bd193f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,12 @@
using System.Runtime.Serialization;
namespace Temp.OpenAi;
public record struct CompletionChatMessage()
{
[DataMember(Name="role")]
public readonly string Role = "user";
[DataMember(Name="content")]
public string? Content { get; set; } = string.Empty;
}