openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Generated/Models/Chat/ChatAudioOptions.cs
38lines · modecode
| 1 | // <auto-generated/> |
| 2 | |
| 3 | #nullable disable |
| 4 | |
| 5 | using System.ClientModel.Primitives; |
| 6 | using System.ComponentModel; |
| 7 | using System.Diagnostics.CodeAnalysis; |
| 8 | using System.Text.Json.Serialization; |
| 9 | |
| 10 | namespace OpenAI.Chat |
| 11 | { |
| 12 | [Experimental("OPENAI001")] |
| 13 | public partial class ChatAudioOptions |
| 14 | { |
| 15 | [Experimental("SCME0001")] |
| 16 | private JsonPatch _patch; |
| 17 | |
| 18 | public ChatAudioOptions(ChatOutputAudioVoice outputAudioVoice, ChatOutputAudioFormat outputAudioFormat) |
| 19 | { |
| 20 | OutputAudioVoice = outputAudioVoice; |
| 21 | OutputAudioFormat = outputAudioFormat; |
| 22 | } |
| 23 | |
| 24 | #pragma warning disable SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates. |
| 25 | internal ChatAudioOptions(ChatOutputAudioVoice outputAudioVoice, ChatOutputAudioFormat outputAudioFormat, in JsonPatch patch) |
| 26 | { |
| 27 | OutputAudioVoice = outputAudioVoice; |
| 28 | OutputAudioFormat = outputAudioFormat; |
| 29 | _patch = patch; |
| 30 | } |
| 31 | #pragma warning restore SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates. |
| 32 | |
| 33 | [JsonIgnore] |
| 34 | [EditorBrowsable(EditorBrowsableState.Never)] |
| 35 | [Experimental("SCME0001")] |
| 36 | public ref JsonPatch Patch => ref _patch; |
| 37 | } |
| 38 | } |
| 39 | |