Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal static partial class AudioCreateTranscriptionAsStreamCommandApiCommand
private static Option<global::tryAGI.OpenAI.AnyOf<string, global::tryAGI.OpenAI.CreateTranscriptionRequestModel?>> Model { get; } = new(
name: @"--model")
{
Description = @"ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1` (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`.
Description = @"ID of the model to use. The options are `gpt-transcribe`, `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1` (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`.
",
Required = true,
};
Expand Down Expand Up @@ -57,6 +57,8 @@ public static Command Create()
command.Options.Add(Model);
command.Options.Add(ChunkingStrategy); command.Options.Add(CreateTranscriptionRequestOptionSetOptions.Filename);
command.Options.Add(CreateTranscriptionRequestOptionSetOptions.Language);
command.Options.Add(CreateTranscriptionRequestOptionSetOptions.Languages);
command.Options.Add(CreateTranscriptionRequestOptionSetOptions.Keywords);
command.Options.Add(CreateTranscriptionRequestOptionSetOptions.Prompt);
command.Options.Add(CreateTranscriptionRequestOptionSetOptions.ResponseFormat);
command.Options.Add(CreateTranscriptionRequestOptionSetOptions.Temperature);
Expand Down Expand Up @@ -93,6 +95,8 @@ await CliRuntime.RunAsync(async () =>
var model = parseResult.GetRequiredValue(Model);
var chunkingStrategy = CliRuntime.WasSpecified(parseResult, ChunkingStrategy) ? parseResult.GetValue(ChunkingStrategy) : (__requestBase is { } __ChunkingStrategyBaseValue ? __ChunkingStrategyBaseValue.ChunkingStrategy : default); var filename = parseResult.GetRequiredValue(CreateTranscriptionRequestOptionSetOptions.Filename);
var language = CliRuntime.WasSpecified(parseResult, CreateTranscriptionRequestOptionSetOptions.Language) ? parseResult.GetValue(CreateTranscriptionRequestOptionSetOptions.Language) : (__requestBase is { } __LanguageBaseValue ? __LanguageBaseValue.Language : default);
var languages = CliRuntime.WasSpecified(parseResult, CreateTranscriptionRequestOptionSetOptions.Languages) ? parseResult.GetValue(CreateTranscriptionRequestOptionSetOptions.Languages) : (__requestBase is { } __LanguagesBaseValue ? __LanguagesBaseValue.Languages : default);
var keywords = CliRuntime.WasSpecified(parseResult, CreateTranscriptionRequestOptionSetOptions.Keywords) ? parseResult.GetValue(CreateTranscriptionRequestOptionSetOptions.Keywords) : (__requestBase is { } __KeywordsBaseValue ? __KeywordsBaseValue.Keywords : default);
var prompt = CliRuntime.WasSpecified(parseResult, CreateTranscriptionRequestOptionSetOptions.Prompt) ? parseResult.GetValue(CreateTranscriptionRequestOptionSetOptions.Prompt) : (__requestBase is { } __PromptBaseValue ? __PromptBaseValue.Prompt : default);
var responseFormat = CliRuntime.WasSpecified(parseResult, CreateTranscriptionRequestOptionSetOptions.ResponseFormat) ? parseResult.GetValue(CreateTranscriptionRequestOptionSetOptions.ResponseFormat) : (__requestBase is { } __ResponseFormatBaseValue ? __ResponseFormatBaseValue.ResponseFormat : default);
var temperature = CliRuntime.WasSpecified(parseResult, CreateTranscriptionRequestOptionSetOptions.Temperature) ? parseResult.GetValue(CreateTranscriptionRequestOptionSetOptions.Temperature) : (__requestBase is { } __TemperatureBaseValue ? __TemperatureBaseValue.Temperature : default);
Expand All @@ -109,6 +113,8 @@ await CliRuntime.RunAsync(async () =>
chunkingStrategy: chunkingStrategy,
filename: filename,
language: language,
languages: languages,
keywords: keywords,
prompt: prompt,
responseFormat: responseFormat,
temperature: temperature,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal static partial class AudioCreateTranscriptionCommandApiCommand
private static Option<global::tryAGI.OpenAI.AnyOf<string, global::tryAGI.OpenAI.CreateTranscriptionRequestModel?>> Model { get; } = new(
name: @"--model")
{
Description = @"ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1` (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`.
Description = @"ID of the model to use. The options are `gpt-transcribe`, `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1` (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`.
",
Required = true,
};
Expand Down Expand Up @@ -77,6 +77,8 @@ public static Command Create()
command.Options.Add(Model);
command.Options.Add(ChunkingStrategy); command.Options.Add(CreateTranscriptionRequestOptionSetOptions.Filename);
command.Options.Add(CreateTranscriptionRequestOptionSetOptions.Language);
command.Options.Add(CreateTranscriptionRequestOptionSetOptions.Languages);
command.Options.Add(CreateTranscriptionRequestOptionSetOptions.Keywords);
command.Options.Add(CreateTranscriptionRequestOptionSetOptions.Prompt);
command.Options.Add(CreateTranscriptionRequestOptionSetOptions.ResponseFormat);
command.Options.Add(CreateTranscriptionRequestOptionSetOptions.Temperature);
Expand Down Expand Up @@ -113,6 +115,8 @@ await CliRuntime.RunAsync(async () =>
var model = parseResult.GetRequiredValue(Model);
var chunkingStrategy = CliRuntime.WasSpecified(parseResult, ChunkingStrategy) ? parseResult.GetValue(ChunkingStrategy) : (__requestBase is { } __ChunkingStrategyBaseValue ? __ChunkingStrategyBaseValue.ChunkingStrategy : default); var filename = parseResult.GetRequiredValue(CreateTranscriptionRequestOptionSetOptions.Filename);
var language = CliRuntime.WasSpecified(parseResult, CreateTranscriptionRequestOptionSetOptions.Language) ? parseResult.GetValue(CreateTranscriptionRequestOptionSetOptions.Language) : (__requestBase is { } __LanguageBaseValue ? __LanguageBaseValue.Language : default);
var languages = CliRuntime.WasSpecified(parseResult, CreateTranscriptionRequestOptionSetOptions.Languages) ? parseResult.GetValue(CreateTranscriptionRequestOptionSetOptions.Languages) : (__requestBase is { } __LanguagesBaseValue ? __LanguagesBaseValue.Languages : default);
var keywords = CliRuntime.WasSpecified(parseResult, CreateTranscriptionRequestOptionSetOptions.Keywords) ? parseResult.GetValue(CreateTranscriptionRequestOptionSetOptions.Keywords) : (__requestBase is { } __KeywordsBaseValue ? __KeywordsBaseValue.Keywords : default);
var prompt = CliRuntime.WasSpecified(parseResult, CreateTranscriptionRequestOptionSetOptions.Prompt) ? parseResult.GetValue(CreateTranscriptionRequestOptionSetOptions.Prompt) : (__requestBase is { } __PromptBaseValue ? __PromptBaseValue.Prompt : default);
var responseFormat = CliRuntime.WasSpecified(parseResult, CreateTranscriptionRequestOptionSetOptions.ResponseFormat) ? parseResult.GetValue(CreateTranscriptionRequestOptionSetOptions.ResponseFormat) : (__requestBase is { } __ResponseFormatBaseValue ? __ResponseFormatBaseValue.ResponseFormat : default);
var temperature = CliRuntime.WasSpecified(parseResult, CreateTranscriptionRequestOptionSetOptions.Temperature) ? parseResult.GetValue(CreateTranscriptionRequestOptionSetOptions.Temperature) : (__requestBase is { } __TemperatureBaseValue ? __TemperatureBaseValue.Temperature : default);
Expand All @@ -129,6 +133,8 @@ await CliRuntime.RunAsync(async () =>
chunkingStrategy: chunkingStrategy,
filename: filename,
language: language,
languages: languages,
keywords: keywords,
prompt: prompt,
responseFormat: responseFormat,
temperature: temperature,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands;
internal sealed record CreateTranscriptionRequestOptionSet(
Option<string> Filename,
Option<string?> Language,
Option<global::System.Collections.Generic.IList<string>?> Languages,
Option<global::System.Collections.Generic.IList<string>?> Keywords,
Option<string?> Prompt,
Option<global::tryAGI.OpenAI.AudioResponseFormat?> ResponseFormat,
Option<double?> Temperature,
Expand All @@ -31,6 +33,16 @@ public static CreateTranscriptionRequestOptionSet Create(string? prefix = null)
Language: new Option<string?>($"--{normalizedPrefix}language")
{
Description = @"The language of the input audio. Supplying the input language in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format will improve accuracy and latency.
",
},
Languages: new Option<global::System.Collections.Generic.IList<string>?>($"--{normalizedPrefix}languages")
{
Description = @"Possible languages of the input audio, in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. Supported by `gpt-transcribe`.
",
},
Keywords: new Option<global::System.Collections.Generic.IList<string>?>($"--{normalizedPrefix}keywords")
{
Description = @"Words or phrases to guide transcription of the input audio. Supported by `gpt-transcribe`.
",
},
Prompt: new Option<string?>($"--{normalizedPrefix}prompt")
Expand Down
Loading