Skip to content

Commit 9425bd1

Browse files
Create CompletionChatMessage.cs
1 parent d2d863d commit 9425bd1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System.Runtime.Serialization;
2+
3+
namespace Temp.OpenAi;
4+
5+
public record struct CompletionChatMessage()
6+
{
7+
[DataMember(Name="role")]
8+
public readonly string Role = "user";
9+
10+
[DataMember(Name="content")]
11+
public string? Content { get; set; } = string.Empty;
12+
}

0 commit comments

Comments
 (0)