@@ -402,9 +402,9 @@ void multiModalityEmbeddedImage(String modelName) throws IOException {
402402 @ ValueSource (strings = { "gpt-4o" })
403403 void multiModalityImageUrl (String modelName ) throws IOException {
404404
405- var userMessage = new UserMessage ("Explain what do you see on this picture?" , List
406- .of (new Media (MimeTypeUtils .IMAGE_PNG ,
407- new URL ("https://docs.spring.io/spring-ai/reference/1.0-SNAPSHOT /_images/multimodal.test.png" ))));
405+ var userMessage = new UserMessage ("Explain what do you see on this picture?" ,
406+ List .of (new Media (MimeTypeUtils .IMAGE_PNG ,
407+ new URL ("https://docs.spring.io/spring-ai/reference/_images/multimodal.test.png" ))));
408408
409409 ChatResponse response = chatModel
410410 .call (new Prompt (List .of (userMessage ), OpenAiChatOptions .builder ().withModel (modelName ).build ()));
@@ -417,9 +417,9 @@ void multiModalityImageUrl(String modelName) throws IOException {
417417 @ Test
418418 void streamingMultiModalityImageUrl () throws IOException {
419419
420- var userMessage = new UserMessage ("Explain what do you see on this picture?" , List
421- .of (new Media (MimeTypeUtils .IMAGE_PNG ,
422- new URL ("https://docs.spring.io/spring-ai/reference/1.0-SNAPSHOT /_images/multimodal.test.png" ))));
420+ var userMessage = new UserMessage ("Explain what do you see on this picture?" ,
421+ List .of (new Media (MimeTypeUtils .IMAGE_PNG ,
422+ new URL ("https://docs.spring.io/spring-ai/reference/_images/multimodal.test.png" ))));
423423
424424 Flux <ChatResponse > response = streamingChatModel .stream (new Prompt (List .of (userMessage ),
425425 OpenAiChatOptions .builder ().withModel (OpenAiApi .ChatModel .GPT_4_O .getValue ()).build ()));
0 commit comments