From 71c142aaa8e31270535bf6bdb898b7c552034c80 Mon Sep 17 00:00:00 2001 From: kalafus <49696537+kalafus@users.noreply.github.com> Date: Wed, 7 Feb 2024 13:42:13 -0500 Subject: [PATCH] Update OpenAITests.swift --- Tests/OpenAITests/OpenAITests.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)") }