|
@@ -1,17 +1,16 @@
|
|
|
package dto
|
|
package dto
|
|
|
|
|
|
|
|
-import "encoding/json"
|
|
|
|
|
-
|
|
|
|
|
type ImageRequest struct {
|
|
type ImageRequest struct {
|
|
|
- Model string `json:"model"`
|
|
|
|
|
- Prompt string `json:"prompt" binding:"required"`
|
|
|
|
|
- N int `json:"n,omitempty"`
|
|
|
|
|
- Size string `json:"size,omitempty"`
|
|
|
|
|
- Quality string `json:"quality,omitempty"`
|
|
|
|
|
- ResponseFormat string `json:"response_format,omitempty"`
|
|
|
|
|
- Style string `json:"style,omitempty"`
|
|
|
|
|
- User string `json:"user,omitempty"`
|
|
|
|
|
- ExtraFields json.RawMessage `json:"extra_fields,omitempty"`
|
|
|
|
|
|
|
+ Model string `json:"model"`
|
|
|
|
|
+ Prompt string `json:"prompt" binding:"required"`
|
|
|
|
|
+ N int `json:"n,omitempty"`
|
|
|
|
|
+ Size string `json:"size,omitempty"`
|
|
|
|
|
+ Quality string `json:"quality,omitempty"`
|
|
|
|
|
+ ResponseFormat string `json:"response_format,omitempty"`
|
|
|
|
|
+ Style string `json:"style,omitempty"`
|
|
|
|
|
+ User string `json:"user,omitempty"`
|
|
|
|
|
+ Moderation string `json:"moderation,omitempty"`
|
|
|
|
|
+ Background string `json:"background,omitempty"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type ImageResponse struct {
|
|
type ImageResponse struct {
|