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/Audio/AudioTranscription.cs

22lines · modecode

1using Microsoft.TypeSpec.Generator.Customizations;
2using System;
3using System.Collections.Generic;
4using System.Diagnostics.CodeAnalysis;
5
6namespace OpenAI.Audio;
7
8[CodeGenType("DotNetCombinedJsonTranscriptionResponse")]
9public partial class AudioTranscription
10{
11 // CUSTOM: Made nullable because this is an optional property.
12 /// <summary> The duration of the input audio. </summary>
13 public TimeSpan? Duration { get; }
14
15 // CUSTOM:
16 // - Added Experimental attribute.
17 // - Reused common logprob type.
18 // - Made readonly.
19 [Experimental("OPENAI001")]
20 [CodeGenMember("Logprobs")]
21 public IReadOnlyList<AudioTokenLogProbabilityDetails> TranscriptionTokenLogProbabilities { get; }
22}