mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-18 16:36:37 +08:00
Update distributor.go
This commit is contained in:
parent
98326bcdb4
commit
f784f232c2
@ -46,8 +46,9 @@ func Distribute() func(c *gin.Context) {
|
||||
if modelRequest.Model == "" {
|
||||
modelRequest.Model = "midjourney"
|
||||
}
|
||||
} else {
|
||||
err = common.UnmarshalBodyReusable(c, &modelRequest)
|
||||
}
|
||||
err = common.UnmarshalBodyReusable(c, &modelRequest)
|
||||
if err != nil {
|
||||
abortWithMessage(c, http.StatusBadRequest, "无效的请求")
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user