openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Custom/Chat/Streaming/StreamingChatOutputAudioUpdate.cs
31lines · modecode
| 1 | namespace OpenAI.Chat; |
| 2 | |
| 3 | using System; |
| 4 | using 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")] |
| 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 | } |
| 32 | |