Skip to content

Commit

Permalink
Merge pull request #197 from Demircivi/main
Browse files Browse the repository at this point in the history
Fixes the `m4a` content type sent as `mp4` instead
  • Loading branch information
Krivoblotsky committed Apr 21, 2024
2 parents 5861c59 + 79ff47d commit 51726a6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Sources/OpenAI/Public/Models/AudioTranscriptionQuery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ public enum ResponseFormat: String, Codable, Equatable, CaseIterable {
switch self {
case .mpga:
fileName += Self.mp3.rawValue
case .m4a:
fileName += Self.mp4.rawValue
default:
fileName += self.rawValue
}
Expand All @@ -72,8 +70,6 @@ public enum ResponseFormat: String, Codable, Equatable, CaseIterable {
switch self {
case .mpga:
contentType += Self.mp3.rawValue
case .m4a:
contentType += Self.mp4.rawValue
default:
contentType += self.rawValue
}
Expand Down

0 comments on commit 51726a6

Please sign in to comment.