Skip to content

Commit e14e788

Browse files
JHZLOsobychacko
authored andcommitted
fix: add @JsonProperty for response_format
Ensures the response_format field is correctly serialized for Stability AI API. Signed-off-by: Jhzlo <kjh0010703@naver.com>
1 parent 1beff75 commit e14e788

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public class StabilityAiImageOptions implements ImageOptions {
121121
* The format in which the generated images are returned. It is sent as part of the
122122
* accept header. Must be "application/json" or "image/png"
123123
*/
124+
@JsonProperty("response_format")
124125
private String responseFormat;
125126

126127
/**

0 commit comments

Comments
 (0)