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

1namespace OpenAI.Chat;
2
3using System;
4using System.Diagnostics.CodeAnalysis;
5
6// CUSTOM: Added Experimental attribute.
7/// <summary>
8/// Represents an audio update in a streaming chat response.
9/// </summary>
10[Experimental("OPENAI001")]
11[CodeGenType("ChatCompletionMessageAudioChunk")]
12public partial class StreamingChatOutputAudioUpdate
13{
14 // CUSTOM: Renamed for clarity of incremental data availability while streaming.
15 /// <summary>
16 /// The next, incremental audio transcript part from the streaming response. <see cref="TranscriptUpdate"/> payloads
17 /// across all received <see cref="StreamingChatCompletionUpdate"/> instances should be concatenated to form the
18 /// full response audio transcript.
19 /// </summary>
20 [CodeGenMember("Transcript")]
21 public string TranscriptUpdate { get; }
22
23 // CUSTOM: Renamed for clarity of incremental data availability while streaming.
24 /// <summary>
25 /// The next, incremental response audio data chunk from the streaming response. <see cref="AudioBytesUpdate"/> payloads
26 /// across all received <see cref="StreamingChatCompletionUpdate"/> instances should be concatenated to form the
27 /// full response audio.
28 /// </summary>
29 [CodeGenMember("Data")]
30 public BinaryData AudioBytesUpdate { get; }
31}
32