Browse Source

添加DALL-E图像生成请求中的Background和Moderation字段

a37836323 7 months ago
parent
commit
28cdfc0a14
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dto/dalle.go

+ 2 - 0
dto/dalle.go

@@ -12,6 +12,8 @@ type ImageRequest struct {
 	Style          string          `json:"style,omitempty"`
 	User           string          `json:"user,omitempty"`
 	ExtraFields    json.RawMessage `json:"extra_fields,omitempty"`
+	Background     string          `json:"background,omitempty"`
+	Moderation     string          `json:"moderation,omitempty"`
 }
 
 type ImageResponse struct {