openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
mailinhphan/clientOptions

Branches

Tags

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

Clone

HTTPS

Download ZIP

OpenAI/src/Custom/Chat/ChatAudioOptions.cs

30lines · modecode

1using Microsoft.TypeSpec.Generator.Customizations;
2
3namespace 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[CodeGenType("CreateChatCompletionRequestAudio1")]
14[CodeGenVisibility(nameof(ChatAudioOptions), CodeGenVisibility.Internal)]
15public partial class ChatAudioOptions
16{
17 // CUSTOM: Renamed.
18 /// <summary>
19 /// Gets or sets the voice model that the response should use to synthesize audio.
20 /// </summary>
21 [CodeGenMember("Voice")]
22 public ChatOutputAudioVoice OutputAudioVoice { get; }
23
24 // CUSTOM: Renamed.
25 /// <summary>
26 /// Specifies the output format desired for synthesized audio.
27 /// </summary>
28 [CodeGenMember("Format")]
29 public ChatOutputAudioFormat OutputAudioFormat { get; }
30}
31