openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
OpenAI/src/Custom/Chat/Internal/InternalChatCompletionStreamResponseDelta.cs
17lines · modecode
| 1 | using Microsoft.TypeSpec.Generator.Customizations; |
| 2 | |
| 3 | namespace OpenAI.Chat; |
| 4 | |
| 5 | [CodeGenType("ChatCompletionStreamResponseDelta")] |
| 6 | internal partial class InternalChatCompletionStreamResponseDelta |
| 7 | { |
| 8 | // CUSTOM: Changed type from string. |
| 9 | /// <summary> The role of the author of this message. </summary> |
| 10 | [CodeGenMember("Role")] |
| 11 | public ChatMessageRole? Role { get; } |
| 12 | |
| 13 | // CUSTOM: Changed type from string. |
| 14 | /// <summary> The contents of the message. </summary> |
| 15 | [CodeGenMember("Content")] |
| 16 | public ChatMessageContent Content { get; } |
| 17 | } |
| 18 | |