mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-19 17:06:38 +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 == "" {
|
if modelRequest.Model == "" {
|
||||||
modelRequest.Model = "midjourney"
|
modelRequest.Model = "midjourney"
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
err = common.UnmarshalBodyReusable(c, &modelRequest)
|
||||||
}
|
}
|
||||||
err = common.UnmarshalBodyReusable(c, &modelRequest)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
abortWithMessage(c, http.StatusBadRequest, "无效的请求")
|
abortWithMessage(c, http.StatusBadRequest, "无效的请求")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user