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 · modepreview

using System.Collections.Generic;

namespace OpenAI.Chat;

[CodeGenModel("ChatCompletionStreamResponseDelta")]
[CodeGenSuppress("InternalChatCompletionStreamResponseDelta")]
[CodeGenSerialization(nameof(Content), SerializationValueHook = nameof(SerializeContentValue), DeserializationValueHook = nameof(DeserializeContentValue))]
internal partial class InternalChatCompletionStreamResponseDelta
{
    // CUSTOM: Changed type from string.
    /// <summary> The role of the author of this message. </summary>
    [CodeGenMember("Role")]
    public ChatMessageRole? Role { get; }

    // CUSTOM: Changed type from string.
    /// <summary> The contents of the message. </summary>
    [CodeGenMember("Content")]
    public IReadOnlyList<ChatMessageContentPart> Content { get; }
}