Skip to content

Commit 8a5f68d

Browse files
JHZLOsobychacko
authored andcommitted
refactor: remove redundant samples() method
samples() duplicates N(), both setting the same field. Keeping only N() simplifies the builder API and aligns with ImageOptions. Signed-off-by: Jhzlo <[email protected]>
1 parent 2721c9e commit 8a5f68d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

models/spring-ai-stability-ai/src/main/java/org/springframework/ai/stabilityai/api/StabilityAiImageOptions.java

-5
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,6 @@ public Builder steps(Integer steps) {
485485
return this;
486486
}
487487

488-
public Builder samples(Integer samples) {
489-
this.options.setN(samples);
490-
return this;
491-
}
492-
493488
public Builder stylePreset(String stylePreset) {
494489
this.options.setStylePreset(stylePreset);
495490
return this;

0 commit comments

Comments
 (0)