From 9027ccf615f5490ed9fae3e9c468163b665b7b65 Mon Sep 17 00:00:00 2001 From: CaIon <1808837298@qq.com> Date: Thu, 16 Nov 2023 01:45:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84dall-e-3=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/relay.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/controller/relay.go b/controller/relay.go index 2ca2bc2..21cbfba 100644 --- a/controller/relay.go +++ b/controller/relay.go @@ -91,11 +91,13 @@ type TextRequest 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 {