openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.0.0-beta.7

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/Custom/Chat/Internal/InternalChatCompletionStreamResponseDelta.cs

19lines · modecode

1using System.Collections.Generic;
2
3namespace OpenAI.Chat;
4
5[CodeGenModel("ChatCompletionStreamResponseDelta")]
6[CodeGenSuppress("InternalChatCompletionStreamResponseDelta")]
7[CodeGenSerialization(nameof(Content), SerializationValueHook = nameof(SerializeContentValue), DeserializationValueHook = nameof(DeserializeContentValue))]
8internal partial class InternalChatCompletionStreamResponseDelta
9{
10 // CUSTOM: Changed type from string.
11 /// <summary> The role of the author of this message. </summary>
12 [CodeGenMember("Role")]
13 public ChatMessageRole? Role { get; }
14
15 // CUSTOM: Changed type from string.
16 /// <summary> The contents of the message. </summary>
17 [CodeGenMember("Content")]
18 public IReadOnlyList<ChatMessageContentPart> Content { get; }
19}
20