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() {
100
100
101
101
@ Test
102
102
void inputAudio () throws IOException {
103
- var audioData = new ClassPathResource ("speech1.mp3" ).getContentAsByteArray ();
103
+ var audioData = new ClassPathResource ("speech/ speech1.mp3" ).getContentAsByteArray ();
104
104
List <ChatCompletionMessage .MediaContent > content = List
105
105
.of (new ChatCompletionMessage .MediaContent ("What is this recording about?" ),
106
106
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 {
570
570
@ ParameterizedTest (name = "{0} : {displayName} " )
571
571
@ ValueSource (strings = { "gpt-4o-audio-preview" })
572
572
void multiModalityInputAudio (String modelName ) {
573
- var audioResource = new ClassPathResource ("speech1.mp3" );
573
+ var audioResource = new ClassPathResource ("speech/ speech1.mp3" );
574
574
var userMessage = UserMessage .builder ()
575
575
.text ("What is this recording about?" )
576
576
.media (List .of (new Media (MimeTypeUtils .parseMimeType ("audio/mp3" ), audioResource )))
@@ -587,7 +587,7 @@ void multiModalityInputAudio(String modelName) {
587
587
@ ParameterizedTest (name = "{0} : {displayName} " )
588
588
@ ValueSource (strings = { "gpt-4o-audio-preview" })
589
589
void streamingMultiModalityInputAudio (String modelName ) {
590
- var audioResource = new ClassPathResource ("speech1.mp3" );
590
+ var audioResource = new ClassPathResource ("speech/ speech1.mp3" );
591
591
var userMessage = UserMessage .builder ()
592
592
.text ("What is this recording about?" )
593
593
.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