Skip to content

Commit ef81aca

Browse files
committed
reformat
1 parent dd55856 commit ef81aca

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

models/spring-ai-openai/src/test/java/org/springframework/ai/openai/audio/speech/OpenAiSpeechModelIT.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ void shouldStreamNonEmptyResponsesForValidSpeechPrompts() {
114114
}
115115

116116
@ParameterizedTest(name = "{0} : {displayName} ")
117-
@ValueSource(strings = {"alloy", "echo", "fable", "onyx", "nova", "shimmer", "sage", "coral", "ash"})
117+
@ValueSource(strings = { "alloy", "echo", "fable", "onyx", "nova", "shimmer", "sage", "coral", "ash" })
118118
void speechVoicesTest(String voice) {
119119
OpenAiAudioSpeechOptions speechOptions = OpenAiAudioSpeechOptions.builder()
120-
.voice(OpenAiAudioApi.SpeechRequest.Voice.valueOf(voice.toUpperCase()))
121-
.speed(SPEED)
122-
.responseFormat(OpenAiAudioApi.SpeechRequest.AudioResponseFormat.MP3)
123-
.model(OpenAiAudioApi.TtsModel.TTS_1.value)
124-
.build();
120+
.voice(OpenAiAudioApi.SpeechRequest.Voice.valueOf(voice.toUpperCase()))
121+
.speed(SPEED)
122+
.responseFormat(OpenAiAudioApi.SpeechRequest.AudioResponseFormat.MP3)
123+
.model(OpenAiAudioApi.TtsModel.TTS_1.value)
124+
.build();
125125
SpeechPrompt speechPrompt = new SpeechPrompt("Today is a wonderful day to build something people love!",
126126
speechOptions);
127127
SpeechResponse response = this.speechModel.call(speechPrompt);
@@ -130,4 +130,5 @@ void speechVoicesTest(String voice) {
130130
assertThat(response.getResults().get(0).getOutput()).isNotEmpty();
131131
assertThat(audioBytes).hasSizeGreaterThan(0);
132132
}
133+
133134
}

0 commit comments

Comments
 (0)