Skip to content

Commit 8703582

Browse files
committed
Fix broken tests after updateding the models from DALL-E-2 to DALL-E-3
1 parent e819b7c commit 8703582

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/spring-ai-openai/src/test/java/org/springframework/ai/openai/image/OpenAiImageClientIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void imageAsUrlTest() {
5858
OpenAiImageGenerationMetadata openAiImageGenerationMetadata = (OpenAiImageGenerationMetadata) imageGenerationMetadata;
5959

6060
assertThat(openAiImageGenerationMetadata).isNotNull();
61-
assertThat(openAiImageGenerationMetadata.getRevisedPrompt()).isNull();
61+
assertThat(openAiImageGenerationMetadata.getRevisedPrompt()).isNotBlank();
6262
}
6363

6464
}

spring-ai-spring-boot-autoconfigure/src/test/java/org/springframework/ai/autoconfigure/openai/OpenAiAutoConfigurationIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void embedding() {
9292

9393
@Test
9494
void generateImage() {
95-
contextRunner.withPropertyValues("spring.ai.openai.image.options.size=256x256").run(context -> {
95+
contextRunner.withPropertyValues("spring.ai.openai.image.options.size=1024x1024").run(context -> {
9696
OpenAiImageClient client = context.getBean(OpenAiImageClient.class);
9797
ImageResponse imageResponse = client.call(new ImagePrompt("forest"));
9898
assertThat(imageResponse.getResults()).hasSize(1);

0 commit comments

Comments
 (0)