Skip to content

Commit ab88fea

Browse files
realJ3Hsobychacko
authored andcommitted
chore: move speech1.mp3 to src/test/resources
Fixes: 3433 Auto-cherry-pick to 1.0.x Signed-off-by: Jan-Eric Harnack <janericharnack@googlemail.com>
1 parent 0a1cf81 commit ab88fea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

models/spring-ai-openai/src/test/java/org/springframework/ai/openai/api/OpenAiApiIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void embeddings() {
100100

101101
@Test
102102
void inputAudio() throws IOException {
103-
var audioData = new ClassPathResource("speech1.mp3").getContentAsByteArray();
103+
var audioData = new ClassPathResource("speech/speech1.mp3").getContentAsByteArray();
104104
List<ChatCompletionMessage.MediaContent> content = List
105105
.of(new ChatCompletionMessage.MediaContent("What is this recording about?"),
106106
new ChatCompletionMessage.MediaContent(new ChatCompletionMessage.MediaContent.InputAudio(

models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/OpenAiChatModelIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ void streamingMultiModalityOutputAudio(String modelName) throws IOException {
570570
@ParameterizedTest(name = "{0} : {displayName} ")
571571
@ValueSource(strings = { "gpt-4o-audio-preview" })
572572
void multiModalityInputAudio(String modelName) {
573-
var audioResource = new ClassPathResource("speech1.mp3");
573+
var audioResource = new ClassPathResource("speech/speech1.mp3");
574574
var userMessage = UserMessage.builder()
575575
.text("What is this recording about?")
576576
.media(List.of(new Media(MimeTypeUtils.parseMimeType("audio/mp3"), audioResource)))
@@ -587,7 +587,7 @@ void multiModalityInputAudio(String modelName) {
587587
@ParameterizedTest(name = "{0} : {displayName} ")
588588
@ValueSource(strings = { "gpt-4o-audio-preview" })
589589
void streamingMultiModalityInputAudio(String modelName) {
590-
var audioResource = new ClassPathResource("speech1.mp3");
590+
var audioResource = new ClassPathResource("speech/speech1.mp3");
591591
var userMessage = UserMessage.builder()
592592
.text("What is this recording about?")
593593
.media(List.of(new Media(MimeTypeUtils.parseMimeType("audio/mp3"), audioResource)))

0 commit comments

Comments
 (0)