openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.2.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Custom/Chat/Streaming/StreamingChatOutputAudioUpdate.cs

31lines · modepreview

namespace OpenAI.Chat;

using System;
using System.Diagnostics.CodeAnalysis;

// CUSTOM: Added Experimental attribute.
/// <summary>
/// Represents an audio update in a streaming chat response.
/// </summary>
[Experimental("OPENAI001")]
[CodeGenType("ChatCompletionMessageAudioChunk")]
public partial class StreamingChatOutputAudioUpdate
{
    // CUSTOM: Renamed for clarity of incremental data availability while streaming.
    /// <summary>
    /// The next, incremental audio transcript part from the streaming response. <see cref="TranscriptUpdate"/> payloads
    /// across all received <see cref="StreamingChatCompletionUpdate"/> instances should be concatenated to form the
    /// full response audio transcript.
    /// </summary>
    [CodeGenMember("Transcript")]
    public string TranscriptUpdate { get; }

    // CUSTOM: Renamed for clarity of incremental data availability while streaming.
    /// <summary>
    /// The next, incremental response audio data chunk from the streaming response. <see cref="AudioBytesUpdate"/> payloads
    /// across all received <see cref="StreamingChatCompletionUpdate"/> instances should be concatenated to form the
    /// full response audio.
    /// </summary>
    [CodeGenMember("Data")]
    public BinaryData AudioBytesUpdate { get; }
}