@@ -589,7 +589,19 @@ void multiModalityInputAudio(String modelName) {
589
589
.call (new Prompt (List .of (userMessage ), ChatOptions .builder ().model (modelName ).build ()));
590
590
591
591
logger .info (response .getResult ().getOutput ().getText ());
592
- assertThat (response .getResult ().getOutput ().getText ()).containsIgnoringCase ("hobbits" );
592
+ String responseText = response .getResult ().getOutput ().getText ();
593
+ assertThat (responseText ).satisfiesAnyOf (text -> assertThat (text ).containsIgnoringCase ("hobbit" ),
594
+ text -> assertThat (text ).containsIgnoringCase ("lord of the rings" ),
595
+ text -> assertThat (text ).containsIgnoringCase ("lotr" ),
596
+ text -> assertThat (text ).containsIgnoringCase ("tolkien" ),
597
+ text -> assertThat (text ).containsIgnoringCase ("fantasy" ),
598
+ text -> assertThat (text ).containsIgnoringCase ("ring" ),
599
+ text -> assertThat (text ).containsIgnoringCase ("shire" ),
600
+ text -> assertThat (text ).containsIgnoringCase ("baggins" ),
601
+ text -> assertThat (text ).containsIgnoringCase ("gandalf" ),
602
+ text -> assertThat (text ).containsIgnoringCase ("frodo" ),
603
+ text -> assertThat (text ).containsIgnoringCase ("meme" ),
604
+ text -> assertThat (text ).containsIgnoringCase ("remix" ));
593
605
assertThat (response .getMetadata ().getModel ()).containsIgnoringCase (modelName );
594
606
}
595
607
0 commit comments