Просмотр исходного кода

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

a37836323 10 месяцев назад
Родитель
Сommit
28cdfc0a14
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      dto/dalle.go

+ 2 - 0
dto/dalle.go

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