Skip to content

Commit 4a5a5b5

Browse files
Mark the builder methods in that start with as .
Signed-off-by: jonghoonpark <[email protected]>
1 parent 6c52c99 commit 4a5a5b5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

models/spring-ai-openai/src/main/java/org/springframework/ai/openai/OpenAiImageOptions.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,41 +306,73 @@ public Builder user(String user) {
306306
return this;
307307
}
308308

309+
/**
310+
* @deprecated use {@link #N(Integer)} instead.
311+
*/
312+
@Deprecated(forRemoval = true, since = "1.0.0-M8")
309313
public Builder withN(Integer n) {
310314
this.options.setN(n);
311315
return this;
312316
}
313317

318+
/**
319+
* @deprecated use {@link #model(String)} instead.
320+
*/
321+
@Deprecated(forRemoval = true, since = "1.0.0-M8")
314322
public Builder withModel(String model) {
315323
this.options.setModel(model);
316324
return this;
317325
}
318326

327+
/**
328+
* @deprecated use {@link #quality(String)} instead.
329+
*/
330+
@Deprecated(forRemoval = true, since = "1.0.0-M8")
319331
public Builder withQuality(String quality) {
320332
this.options.setQuality(quality);
321333
return this;
322334
}
323335

336+
/**
337+
* @deprecated use {@link #responseFormat(String)} instead.
338+
*/
339+
@Deprecated(forRemoval = true, since = "1.0.0-M8")
324340
public Builder withResponseFormat(String responseFormat) {
325341
this.options.setResponseFormat(responseFormat);
326342
return this;
327343
}
328344

345+
/**
346+
* @deprecated use {@link #width(Integer)} instead.
347+
*/
348+
@Deprecated(forRemoval = true, since = "1.0.0-M8")
329349
public Builder withWidth(Integer width) {
330350
this.options.setWidth(width);
331351
return this;
332352
}
333353

354+
/**
355+
* @deprecated use {@link #height(Integer)} instead.
356+
*/
357+
@Deprecated(forRemoval = true, since = "1.0.0-M8")
334358
public Builder withHeight(Integer height) {
335359
this.options.setHeight(height);
336360
return this;
337361
}
338362

363+
/**
364+
* @deprecated use {@link #style(String)} instead.
365+
*/
366+
@Deprecated(forRemoval = true, since = "1.0.0-M8")
339367
public Builder withStyle(String style) {
340368
this.options.setStyle(style);
341369
return this;
342370
}
343371

372+
/**
373+
* @deprecated use {@link #user(String)} instead.
374+
*/
375+
@Deprecated(forRemoval = true, since = "1.0.0-M8")
344376
public Builder withUser(String user) {
345377
this.options.setUser(user);
346378
return this;

0 commit comments

Comments
 (0)