Create CompletionChatMessage.cs
This commit is contained in:
parent
d2d863d68e
commit
9425bd193f
|
|
@ -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;
|
||||
}
|
||||
Loading…
Reference in New Issue