Quellcode durchsuchen

完善dall-e-3请求参数

CaIon vor 2 Jahren
Ursprung
Commit
9027ccf615
1 geänderte Dateien mit 7 neuen und 5 gelöschten Zeilen
  1. 7 5
      controller/relay.go

+ 7 - 5
controller/relay.go

@@ -91,11 +91,13 @@ type TextRequest struct {
 }
 }
 
 
 type ImageRequest struct {
 type ImageRequest struct {
-	Model   string `json:"model"`
-	Quality string `json:"quality"`
-	Prompt  string `json:"prompt"`
-	N       int    `json:"n"`
-	Size    string `json:"size"`
+	Model          string `json:"model"`
+	Prompt         string `json:"prompt"`
+	N              int    `json:"n"`
+	Size           string `json:"size"`
+	Quality        string `json:"quality,omitempty"`
+	ResponseFormat string `json:"response_format,omitempty"`
+	Style          string `json:"style,omitempty"`
 }
 }
 
 
 type AudioResponse struct {
 type AudioResponse struct {