openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Custom/Chat/ChatAudioOptions.cs
31lines · modecode
| 1 | using System.Diagnostics.CodeAnalysis; |
| 2 | |
| 3 | namespace OpenAI.Chat; |
| 4 | |
| 5 | // CUSTOM: Added Experimental attribute. |
| 6 | /// <summary> |
| 7 | /// Represents the configuration details for output audio requested in a chat completion request. |
| 8 | /// </summary> |
| 9 | /// <remarks> |
| 10 | /// When provided to a <see cref="ChatCompletionOptions"/> instance's <see cref="ChatCompletionOptions.AudioOptions"/> property, |
| 11 | /// the request's specified content modalities will be automatically updated to reflect desired audio output. |
| 12 | /// </remarks> |
| 13 | [Experimental("OPENAI001")] |
| 14 | [CodeGenType("CreateChatCompletionRequestAudio1")] |
| 15 | [CodeGenVisibility(nameof(ChatAudioOptions), CodeGenVisibility.Internal)] |
| 16 | public partial class ChatAudioOptions |
| 17 | { |
| 18 | // CUSTOM: Renamed. |
| 19 | /// <summary> |
| 20 | /// Gets or sets the voice model that the response should use to synthesize audio. |
| 21 | /// </summary> |
| 22 | [CodeGenMember("Voice")] |
| 23 | public ChatOutputAudioVoice OutputAudioVoice { get; } |
| 24 | |
| 25 | // CUSTOM: Renamed. |
| 26 | /// <summary> |
| 27 | /// Specifies the output format desired for synthesized audio. |
| 28 | /// </summary> |
| 29 | [CodeGenMember("Format")] |
| 30 | public ChatOutputAudioFormat OutputAudioFormat { get; } |
| 31 | } |
| 32 | |