fix(dalle): update ImageRequest struct to use json.RawMessage for flexible field types
This commit is contained in:
13
dto/dalle.go
13
dto/dalle.go
@@ -9,12 +9,15 @@ type ImageRequest struct {
|
|||||||
Size string `json:"size,omitempty"`
|
Size string `json:"size,omitempty"`
|
||||||
Quality string `json:"quality,omitempty"`
|
Quality string `json:"quality,omitempty"`
|
||||||
ResponseFormat string `json:"response_format,omitempty"`
|
ResponseFormat string `json:"response_format,omitempty"`
|
||||||
Style string `json:"style,omitempty"`
|
Style json.RawMessage `json:"style,omitempty"`
|
||||||
User string `json:"user,omitempty"`
|
User json.RawMessage `json:"user,omitempty"`
|
||||||
ExtraFields json.RawMessage `json:"extra_fields,omitempty"`
|
ExtraFields json.RawMessage `json:"extra_fields,omitempty"`
|
||||||
Background string `json:"background,omitempty"`
|
Background json.RawMessage `json:"background,omitempty"`
|
||||||
Moderation string `json:"moderation,omitempty"`
|
Moderation json.RawMessage `json:"moderation,omitempty"`
|
||||||
OutputFormat string `json:"output_format,omitempty"`
|
OutputFormat json.RawMessage `json:"output_format,omitempty"`
|
||||||
|
OutputCompression json.RawMessage `json:"output_compression,omitempty"`
|
||||||
|
PartialImages json.RawMessage `json:"partial_images,omitempty"`
|
||||||
|
// Stream bool `json:"stream,omitempty"`
|
||||||
Watermark *bool `json:"watermark,omitempty"`
|
Watermark *bool `json:"watermark,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user