Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net: Cleanup #7266

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -364,12 +364,8 @@ public static AzureOpenAIPromptExecutionSettings FromExecutionSettings(PromptExe
var json = JsonSerializer.Serialize(executionSettings);

var openAIExecutionSettings = JsonSerializer.Deserialize<AzureOpenAIPromptExecutionSettings>(json, JsonOptionsCache.ReadPermissive);
if (openAIExecutionSettings is not null)
{
return openAIExecutionSettings;
}

throw new ArgumentException($"Invalid execution settings, cannot convert to {nameof(AzureOpenAIPromptExecutionSettings)}", nameof(executionSettings));
return openAIExecutionSettings!;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,32 +148,6 @@ public override PromptExecutionSettings Clone()
return openAIExecutionSettings!;
}

/// <summary>
/// Specifies the format of the audio transcription.
/// </summary>
public enum AudioTranscriptionFormat
{
/// <summary>
/// Response body that is a JSON object containing a single 'text' field for the transcription.
/// </summary>
Simple,

/// <summary>
/// Use a response body that is a JSON object containing transcription text along with timing, segments, and other metadata.
/// </summary>
Verbose,

/// <summary>
/// Response body that is plain text in SubRip (SRT) format that also includes timing information.
/// </summary>
Srt,

/// <summary>
/// Response body that is plain text in Web Video Text Tracks (VTT) format that also includes timing information.
/// </summary>
Vtt,
}

#region private ================================================================================

private const string DefaultFilename = "file.mp3";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@

namespace Microsoft.SemanticKernel.Connectors.OpenAI;

/* Phase 06
- Drop FromExecutionSettingsWithData Azure specific method
*/

/// <summary>
/// Execution settings for an OpenAI completion request.
/// </summary>
Expand Down
Loading