From 79ff47d68d0fb25a042626d3146c853aa5c2dc37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fu=20Emre=20Demir=C3=A7ivi?= Date: Wed, 10 Apr 2024 12:41:50 +0300 Subject: [PATCH] Fixes the `m4a` content type sent as `mp4` instead --- Sources/OpenAI/Public/Models/AudioTranscriptionQuery.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Sources/OpenAI/Public/Models/AudioTranscriptionQuery.swift b/Sources/OpenAI/Public/Models/AudioTranscriptionQuery.swift index 1acdd724..d1449d4a 100644 --- a/Sources/OpenAI/Public/Models/AudioTranscriptionQuery.swift +++ b/Sources/OpenAI/Public/Models/AudioTranscriptionQuery.swift @@ -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 } @@ -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 }