Fix broken tests after updateding the models from DALL-E-2 to DALL-E-3
This commit is contained in:
@@ -58,7 +58,7 @@ public class OpenAiImageClientIT extends AbstractIT {
|
||||
OpenAiImageGenerationMetadata openAiImageGenerationMetadata = (OpenAiImageGenerationMetadata) imageGenerationMetadata;
|
||||
|
||||
assertThat(openAiImageGenerationMetadata).isNotNull();
|
||||
assertThat(openAiImageGenerationMetadata.getRevisedPrompt()).isNull();
|
||||
assertThat(openAiImageGenerationMetadata.getRevisedPrompt()).isNotBlank();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ public class OpenAiAutoConfigurationIT {
|
||||
|
||||
@Test
|
||||
void generateImage() {
|
||||
contextRunner.withPropertyValues("spring.ai.openai.image.options.size=256x256").run(context -> {
|
||||
contextRunner.withPropertyValues("spring.ai.openai.image.options.size=1024x1024").run(context -> {
|
||||
OpenAiImageClient client = context.getBean(OpenAiImageClient.class);
|
||||
ImageResponse imageResponse = client.call(new ImagePrompt("forest"));
|
||||
assertThat(imageResponse.getResults()).hasSize(1);
|
||||
|
||||
Reference in New Issue
Block a user