openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.1.0-beta.2

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Custom/Audio/AudioTranslation.cs

14lines · modepreview

using System;

namespace OpenAI.Audio;

[CodeGenModel("CreateTranslationResponseVerboseJson")]
public partial class AudioTranslation
{
    // CUSTOM: Made private. This property does not add value in the context of a strongly-typed class.
    private InternalCreateTranslationResponseVerboseJsonTask Task { get; } = InternalCreateTranslationResponseVerboseJsonTask.Translate;

    // CUSTOM: Made nullable because this is an optional property.
    /// <summary> The duration of the input audio. </summary>
    public TimeSpan? Duration { get; }
}