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 style to option abstraction
* Use abstraction in Observations directly instead of dedicated implementation
* Clean-up the merge of runtime and default image options in OpenAI and Stability AI
Related to #1148
Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
Copy file name to clipboardExpand all lines: models/spring-ai-azure-openai/src/main/java/org/springframework/ai/azure/openai/AzureOpenAiImageOptions.java
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
* The configuration information for a image generation request.
12
12
*
13
13
* @author Benoit Moussaud
14
+
* @author Thomas Vitale
14
15
* @since 1.0.0 M1
15
16
*/
16
17
@JsonInclude(JsonInclude.Include.NON_NULL)
@@ -88,10 +89,15 @@ public class AzureOpenAiImageOptions implements ImageOptions {
88
89
@JsonProperty("user")
89
90
privateStringuser;
90
91
92
+
@Override
91
93
publicIntegergetN() {
92
94
returnn;
93
95
}
94
96
97
+
publicvoidsetN(Integern) {
98
+
this.n = n;
99
+
}
100
+
95
101
@Override
96
102
publicStringgetModel() {
97
103
returnmodel;
@@ -101,10 +107,7 @@ public void setModel(String model) {
101
107
this.model = model;
102
108
}
103
109
104
-
publicvoidsetN(Integern) {
105
-
this.n = n;
106
-
}
107
-
110
+
@Override
108
111
publicIntegergetWidth() {
109
112
returnwidth;
110
113
}
@@ -114,6 +117,7 @@ public void setWidth(Integer width) {
114
117
this.size = this.width + "x" + this.height;
115
118
}
116
119
120
+
@Override
117
121
publicIntegergetHeight() {
118
122
returnheight;
119
123
}
@@ -123,6 +127,7 @@ public void setHeight(Integer height) {
123
127
this.size = this.width + "x" + this.height;
124
128
}
125
129
130
+
@Override
126
131
publicStringgetResponseFormat() {
127
132
returnresponseFormat;
128
133
}
@@ -158,6 +163,7 @@ public void setQuality(String quality) {
0 commit comments