openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Generated/Models/Audio/AudioTranscriptionOptions.cs
48lines · modecode
| 1 | // <auto-generated/> |
| 2 | |
| 3 | #nullable disable |
| 4 | |
| 5 | using System; |
| 6 | using System.Collections.Generic; |
| 7 | using OpenAI; |
| 8 | using OpenAI.Realtime; |
| 9 | |
| 10 | namespace OpenAI.Audio |
| 11 | { |
| 12 | public partial class AudioTranscriptionOptions |
| 13 | { |
| 14 | private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties; |
| 15 | |
| 16 | internal AudioTranscriptionOptions(string language, string prompt, AudioTranscriptionFormat? responseFormat, float? temperature, InternalVadConfig chunkingStrategy, BinaryData @file, InternalCreateTranscriptionRequestModel model, IList<BinaryData> internalTimestampGranularities, bool? stream, IList<InternalTranscriptionInclude> internalInclude, IDictionary<string, BinaryData> additionalBinaryDataProperties) |
| 17 | { |
| 18 | // Plugin customization: ensure initialization of collections |
| 19 | Language = language; |
| 20 | Prompt = prompt; |
| 21 | ResponseFormat = responseFormat; |
| 22 | Temperature = temperature; |
| 23 | ChunkingStrategy = chunkingStrategy; |
| 24 | File = @file; |
| 25 | Model = model; |
| 26 | InternalTimestampGranularities = internalTimestampGranularities ?? new ChangeTrackingList<BinaryData>(); |
| 27 | Stream = stream; |
| 28 | InternalInclude = internalInclude ?? new ChangeTrackingList<InternalTranscriptionInclude>(); |
| 29 | _additionalBinaryDataProperties = additionalBinaryDataProperties; |
| 30 | } |
| 31 | |
| 32 | public string Language { get; set; } |
| 33 | |
| 34 | public string Prompt { get; set; } |
| 35 | |
| 36 | public AudioTranscriptionFormat? ResponseFormat { get; set; } |
| 37 | |
| 38 | public float? Temperature { get; set; } |
| 39 | |
| 40 | internal InternalVadConfig ChunkingStrategy { get; set; } |
| 41 | |
| 42 | internal IDictionary<string, BinaryData> SerializedAdditionalRawData |
| 43 | { |
| 44 | get => _additionalBinaryDataProperties; |
| 45 | set => _additionalBinaryDataProperties = value; |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | |