Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit f1c3aa8

Browse files
committed
Moved class MessageDto to the file
1 parent 918f5b2 commit f1c3aa8

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

ManagedCode.OpenAI/API/Chat/ChatChoiceDto.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,4 @@ public class ChatChoiceDto
1212

1313
[JsonPropertyName("finish_reason")]
1414
public string FinishReason { get; set; }
15-
}
16-
17-
public class MessageDto
18-
{
19-
[JsonPropertyName("role")]
20-
public string Role { get; set; }
21-
22-
[JsonPropertyName("content")]
23-
public string Content { get; set; }
2415
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System.Text.Json.Serialization;
2+
3+
namespace ManagedCode.OpenAI.API;
4+
5+
public class MessageDto
6+
{
7+
[JsonPropertyName("role")]
8+
public string Role { get; set; }
9+
10+
[JsonPropertyName("content")]
11+
public string Content { get; set; }
12+
}

0 commit comments

Comments
 (0)