openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
mailinhphan/clientOptions

Branches

Tags

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

Clone

HTTPS

Download ZIP

OpenAI/src/Custom/Chat/Internal/InternalChatCompletionStreamResponseDelta.cs

17lines · modecode

1using Microsoft.TypeSpec.Generator.Customizations;
2
3namespace OpenAI.Chat;
4
5[CodeGenType("ChatCompletionStreamResponseDelta")]
6internal 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