fix: add missing omitempty
This commit is contained in:
parent
ab765a98e8
commit
a2a65575e4
@ -133,12 +133,12 @@ type TextRequest struct {
|
|||||||
type ImageRequest struct {
|
type ImageRequest struct {
|
||||||
Model string `json:"model"`
|
Model string `json:"model"`
|
||||||
Prompt string `json:"prompt" binding:"required"`
|
Prompt string `json:"prompt" binding:"required"`
|
||||||
N int `json:"n"`
|
N int `json:"n,omitempty"`
|
||||||
Size string `json:"size"`
|
Size string `json:"size,omitempty"`
|
||||||
Quality string `json:"quality"`
|
Quality string `json:"quality,omitempty"`
|
||||||
ResponseFormat string `json:"response_format"`
|
ResponseFormat string `json:"response_format,omitempty"`
|
||||||
Style string `json:"style"`
|
Style string `json:"style,omitempty"`
|
||||||
User string `json:"user"`
|
User string `json:"user,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type WhisperResponse struct {
|
type WhisperResponse struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user