Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class ImageCreateVariationParamsTest {
.model(ImageModel.DALL_E_2)
.n(1L)
.responseFormat(ImageCreateVariationParams.ResponseFormat.URL)
.size(ImageCreateVariationParams.Size._256X256)
.size(ImageCreateVariationParams.Size._1024X1024)
.user("user-1234")
.build()
}
Expand All @@ -29,7 +29,7 @@ internal class ImageCreateVariationParamsTest {
.model(ImageModel.DALL_E_2)
.n(1L)
.responseFormat(ImageCreateVariationParams.ResponseFormat.URL)
.size(ImageCreateVariationParams.Size._256X256)
.size(ImageCreateVariationParams.Size._1024X1024)
.user("user-1234")
.build()

Expand All @@ -50,7 +50,7 @@ internal class ImageCreateVariationParamsTest {
"n" to MultipartField.of(1L),
"response_format" to
MultipartField.of(ImageCreateVariationParams.ResponseFormat.URL),
"size" to MultipartField.of(ImageCreateVariationParams.Size._256X256),
"size" to MultipartField.of(ImageCreateVariationParams.Size._1024X1024),
"user" to MultipartField.of("user-1234"),
)
.mapValues { (_, field) ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal class ImageEditParamsTest {
.model(ImageModel.DALL_E_2)
.n(1L)
.responseFormat(ImageEditParams.ResponseFormat.URL)
.size(ImageEditParams.Size._256X256)
.size(ImageEditParams.Size._1024X1024)
.user("user-1234")
.build()
}
Expand All @@ -33,7 +33,7 @@ internal class ImageEditParamsTest {
.model(ImageModel.DALL_E_2)
.n(1L)
.responseFormat(ImageEditParams.ResponseFormat.URL)
.size(ImageEditParams.Size._256X256)
.size(ImageEditParams.Size._1024X1024)
.user("user-1234")
.build()

Expand All @@ -55,7 +55,7 @@ internal class ImageEditParamsTest {
"model" to MultipartField.of(ImageModel.DALL_E_2),
"n" to MultipartField.of(1L),
"response_format" to MultipartField.of(ImageEditParams.ResponseFormat.URL),
"size" to MultipartField.of(ImageEditParams.Size._256X256),
"size" to MultipartField.of(ImageEditParams.Size._1024X1024),
"user" to MultipartField.of("user-1234"),
)
.mapValues { (_, field) ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal class ImageGenerateParamsTest {
.n(1L)
.quality(ImageGenerateParams.Quality.STANDARD)
.responseFormat(ImageGenerateParams.ResponseFormat.URL)
.size(ImageGenerateParams.Size._256X256)
.size(ImageGenerateParams.Size._1024X1024)
.style(ImageGenerateParams.Style.VIVID)
.user("user-1234")
.build()
Expand All @@ -30,7 +30,7 @@ internal class ImageGenerateParamsTest {
.n(1L)
.quality(ImageGenerateParams.Quality.STANDARD)
.responseFormat(ImageGenerateParams.ResponseFormat.URL)
.size(ImageGenerateParams.Size._256X256)
.size(ImageGenerateParams.Size._1024X1024)
.style(ImageGenerateParams.Style.VIVID)
.user("user-1234")
.build()
Expand All @@ -42,7 +42,7 @@ internal class ImageGenerateParamsTest {
assertThat(body.n()).contains(1L)
assertThat(body.quality()).contains(ImageGenerateParams.Quality.STANDARD)
assertThat(body.responseFormat()).contains(ImageGenerateParams.ResponseFormat.URL)
assertThat(body.size()).contains(ImageGenerateParams.Size._256X256)
assertThat(body.size()).contains(ImageGenerateParams.Size._1024X1024)
assertThat(body.style()).contains(ImageGenerateParams.Style.VIVID)
assertThat(body.user()).contains("user-1234")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ internal class ImageServiceAsyncTest {
.model(ImageModel.DALL_E_2)
.n(1L)
.responseFormat(ImageCreateVariationParams.ResponseFormat.URL)
.size(ImageCreateVariationParams.Size._256X256)
.size(ImageCreateVariationParams.Size._1024X1024)
.user("user-1234")
.build()
)
Expand All @@ -57,7 +57,7 @@ internal class ImageServiceAsyncTest {
.model(ImageModel.DALL_E_2)
.n(1L)
.responseFormat(ImageEditParams.ResponseFormat.URL)
.size(ImageEditParams.Size._256X256)
.size(ImageEditParams.Size._1024X1024)
.user("user-1234")
.build()
)
Expand All @@ -83,7 +83,7 @@ internal class ImageServiceAsyncTest {
.n(1L)
.quality(ImageGenerateParams.Quality.STANDARD)
.responseFormat(ImageGenerateParams.ResponseFormat.URL)
.size(ImageGenerateParams.Size._256X256)
.size(ImageGenerateParams.Size._1024X1024)
.style(ImageGenerateParams.Style.VIVID)
.user("user-1234")
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ internal class ImageServiceTest {
.model(ImageModel.DALL_E_2)
.n(1L)
.responseFormat(ImageCreateVariationParams.ResponseFormat.URL)
.size(ImageCreateVariationParams.Size._256X256)
.size(ImageCreateVariationParams.Size._1024X1024)
.user("user-1234")
.build()
)
Expand All @@ -56,7 +56,7 @@ internal class ImageServiceTest {
.model(ImageModel.DALL_E_2)
.n(1L)
.responseFormat(ImageEditParams.ResponseFormat.URL)
.size(ImageEditParams.Size._256X256)
.size(ImageEditParams.Size._1024X1024)
.user("user-1234")
.build()
)
Expand All @@ -81,7 +81,7 @@ internal class ImageServiceTest {
.n(1L)
.quality(ImageGenerateParams.Quality.STANDARD)
.responseFormat(ImageGenerateParams.ResponseFormat.URL)
.size(ImageGenerateParams.Size._256X256)
.size(ImageGenerateParams.Size._1024X1024)
.style(ImageGenerateParams.Style.VIVID)
.user("user-1234")
.build()
Expand Down