openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Custom/Chat/Internal/InternalChatCompletionStreamResponseDelta.cs
19lines · modecode
| 1 | using System.Collections.Generic; |
| 2 | |
| 3 | namespace OpenAI.Chat; |
| 4 | |
| 5 | [CodeGenModel("ChatCompletionStreamResponseDelta")] |
| 6 | [CodeGenSuppress("InternalChatCompletionStreamResponseDelta")] |
| 7 | [CodeGenSerialization(nameof(Content), SerializationValueHook = nameof(SerializeContentValue), DeserializationValueHook = nameof(DeserializeContentValue))] |
| 8 | internal 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 | |