File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
models/spring-ai-openai/src/test
java/org/springframework/ai/openai Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 )))
File renamed without changes.
You can’t perform that action at this time.
0 commit comments