openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Custom/Chat/Streaming/StreamingChatOutputAudioUpdate.cs
31lines · modeblame
0e0c460cJose Arriaga Maldonado1 years ago | 1 | namespace OpenAI.Chat; |
| 2 | | |
| 3 | using System; | |
5dce104aJose Arriaga Maldonado1 years ago | 4 | using System.Diagnostics.CodeAnalysis; |
0e0c460cJose Arriaga Maldonado1 years ago | 5 | |
5dce104aJose Arriaga Maldonado1 years ago | 6 | // CUSTOM: Added Experimental attribute. |
0e0c460cJose Arriaga Maldonado1 years ago | 7 | /// <summary> |
| 8 | /// Represents an audio update in a streaming chat response. | |
| 9 | /// </summary> | |
5dce104aJose Arriaga Maldonado1 years ago | 10 | [Experimental("OPENAI001")] |
0ca4c062Jose Arriaga Maldonado1 years ago | 11 | [CodeGenType("ChatCompletionMessageAudioChunk")] |
0e0c460cJose Arriaga Maldonado1 years ago | 12 | public 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 | } |