Skip to content

Commit d793f7c

Browse files
committed
Change Choices in ChatResult to IReadOnlyList
1 parent 61d631c commit d793f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenAI_API/Chat/ChatResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class ChatResult : ApiResultBase
2020
/// The list of choices that the user was presented with during the chat interaction
2121
/// </summary>
2222
[JsonProperty("choices")]
23-
public ChatChoice[] Choices { get; set; }
23+
public IReadOnlyList<ChatChoice> Choices { get; set; }
2424

2525
/// <summary>
2626
/// The usage statistics for the chat interaction

0 commit comments

Comments
 (0)