Skip to content

Commit 715b6c6

Browse files
author
brain.liu
committed
add field in ImageRequest
1 parent 4c81937 commit 715b6c6

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

image.go

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,22 @@ const (
7171

7272
// ImageRequest represents the request structure for the image API.
7373
type ImageRequest struct {
74-
Prompt string `json:"prompt,omitempty"`
75-
Model string `json:"model,omitempty"`
76-
N int `json:"n,omitempty"`
77-
Quality string `json:"quality,omitempty"`
78-
Size string `json:"size,omitempty"`
79-
Style string `json:"style,omitempty"`
80-
ResponseFormat string `json:"response_format,omitempty"`
81-
User string `json:"user,omitempty"`
82-
Background string `json:"background,omitempty"`
83-
Moderation string `json:"moderation,omitempty"`
84-
OutputCompression int `json:"output_compression,omitempty"`
85-
OutputFormat string `json:"output_format,omitempty"`
86-
Watermark *bool `json:"watermark,omitempty"`
74+
Prompt string `json:"prompt,omitempty"`
75+
Model string `json:"model,omitempty"`
76+
N int `json:"n,omitempty"`
77+
Quality string `json:"quality,omitempty"`
78+
Size string `json:"size,omitempty"`
79+
Style string `json:"style,omitempty"`
80+
ResponseFormat string `json:"response_format,omitempty"`
81+
User string `json:"user,omitempty"`
82+
Background string `json:"background,omitempty"`
83+
Moderation string `json:"moderation,omitempty"`
84+
OutputCompression int `json:"output_compression,omitempty"`
85+
OutputFormat string `json:"output_format,omitempty"`
86+
Watermark *bool `json:"watermark,omitempty"`
87+
Image string `json:"image,omitempty"`
88+
Seed *int `json:"seed,omitempty"`
89+
GuidanceScale *float32 `json:"guidance_scale,omitempty"`
8790
}
8891

8992
// ImageResponse represents a response structure for image API.

0 commit comments

Comments
 (0)