diff --git a/Tests/OpenAITests/OpenAITests.swift b/Tests/OpenAITests/OpenAITests.swift index 19a86fba..b10498ed 100644 --- a/Tests/OpenAITests/OpenAITests.swift +++ b/Tests/OpenAITests/OpenAITests.swift @@ -259,25 +259,25 @@ class OpenAITests: XCTestCase { } func testAudioSpeechDoesNotNormalize() async throws { - let query = AudioSpeechQuery(model: .tts_1, input: "Hello, world!", voice: .alloy, responseFormat: .mp3, speed: 2.0) + let query = AudioSpeechQuery(model: .tts_1, input: "Hello, world!", voice: .alloy, response_format: .mp3, speed: 2.0) XCTAssertEqual(query.speed, "\(2.0)") } func testAudioSpeechNormalizeNil() async throws { - let query = AudioSpeechQuery(model: .tts_1, input: "Hello, world!", voice: .alloy, responseFormat: .mp3, speed: nil) + let query = AudioSpeechQuery(model: .tts_1, input: "Hello, world!", voice: .alloy, response_format: .mp3, speed: nil) XCTAssertEqual(query.speed, "\(1.0)") } func testAudioSpeechNormalizeLow() async throws { - let query = AudioSpeechQuery(model: .tts_1, input: "Hello, world!", voice: .alloy, responseFormat: .mp3, speed: 0.0) + let query = AudioSpeechQuery(model: .tts_1, input: "Hello, world!", voice: .alloy, response_format: .mp3, speed: 0.0) XCTAssertEqual(query.speed, "\(0.25)") } func testAudioSpeechNormalizeHigh() async throws { - let query = AudioSpeechQuery(model: .tts_1, input: "Hello, world!", voice: .alloy, responseFormat: .mp3, speed: 10.0) + let query = AudioSpeechQuery(model: .tts_1, input: "Hello, world!", voice: .alloy, response_format: .mp3, speed: 10.0) XCTAssertEqual(query.speed, "\(4.0)") }