You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add outputFormat and outputCompression to OpenAiSdkImageOptions
Add support for outputFormat and outputCompression parameters in
image generation using the OpenAI SDK. These options allow users
to specify the output format (png, jpeg, webp) and compression
level for generated images.
Changes:
* Add outputFormat and outputCompression fields to OpenAiSdkImageOptions
* Add getters, setters, and builder methods for the new fields
* Update equals, hashCode, and toString methods
* Update toOpenAiImageGenerateParams to include the new parameters
* Update Builder.from() and Builder.merge() to handle new fields
* Add test coverage for the new properties
Signed-off-by: Igor Bari <mucsi96@gmail.com>
Copy file name to clipboardExpand all lines: auto-configurations/models/spring-ai-autoconfigure-model-openai-sdk/src/test/java/org/springframework/ai/model/openaisdk/autoconfigure/OpenAiSdkImagePropertiesTests.java
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,9 @@ public void imageOptionsTest() {
0 commit comments