openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.3.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/Custom/Chat/ChatAudioOptions.cs

30lines · modepreview

using System.Diagnostics.CodeAnalysis;

namespace OpenAI.Chat;

// CUSTOM: Added Experimental attribute.
/// <summary>
/// Represents the configuration details for output audio requested in a chat completion request.
/// </summary>
/// <remarks>
/// When provided to a <see cref="ChatCompletionOptions"/> instance's <see cref="ChatCompletionOptions.AudioOptions"/> property,
/// the request's specified content modalities will be automatically updated to reflect desired audio output.
/// </remarks>
[CodeGenType("CreateChatCompletionRequestAudio1")]
[CodeGenVisibility(nameof(ChatAudioOptions), CodeGenVisibility.Internal)]
public partial class ChatAudioOptions
{
    // CUSTOM: Renamed.
    /// <summary>
    /// Gets or sets the voice model that the response should use to synthesize audio.
    /// </summary>
    [CodeGenMember("Voice")]
    public ChatOutputAudioVoice OutputAudioVoice { get; }

    // CUSTOM: Renamed.
    /// <summary>
    /// Specifies the output format desired for synthesized audio.
    /// </summary>
    [CodeGenMember("Format")]
    public ChatOutputAudioFormat OutputAudioFormat { get; }
}