Skip to content

Commit

Permalink
Change Choices in ChatResult to IReadOnlyList
Browse files Browse the repository at this point in the history
  • Loading branch information
megalon committed Mar 5, 2023
1 parent 61d631c commit d793f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenAI_API/Chat/ChatResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class ChatResult : ApiResultBase
/// The list of choices that the user was presented with during the chat interaction
/// </summary>
[JsonProperty("choices")]
public ChatChoice[] Choices { get; set; }
public IReadOnlyList<ChatChoice> Choices { get; set; }

/// <summary>
/// The usage statistics for the chat interaction
Expand Down

0 comments on commit d793f7c

Please sign in to comment.