瀏覽代碼

feat: doubao-seedream-4-0-250828 image to image

feitianbubu 3 月之前
父節點
當前提交
fcf0f952b1
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      dto/openai_image.go

+ 2 - 1
dto/openai_image.go

@@ -27,7 +27,8 @@ type ImageRequest struct {
 	OutputCompression json.RawMessage `json:"output_compression,omitempty"`
 	OutputCompression json.RawMessage `json:"output_compression,omitempty"`
 	PartialImages     json.RawMessage `json:"partial_images,omitempty"`
 	PartialImages     json.RawMessage `json:"partial_images,omitempty"`
 	// Stream            bool            `json:"stream,omitempty"`
 	// Stream            bool            `json:"stream,omitempty"`
-	Watermark *bool `json:"watermark,omitempty"`
+	Watermark *bool           `json:"watermark,omitempty"`
+	Image     json.RawMessage `json:"image,omitempty"`
 	// 用匿名参数接收额外参数
 	// 用匿名参数接收额外参数
 	Extra map[string]json.RawMessage `json:"-"`
 	Extra map[string]json.RawMessage `json:"-"`
 }
 }