fix whisper-1

This commit is contained in:
CaIon committed 2023-11-19 16:35:37 +08:00
1 parent 3d93670f1e
commit 36173b7968
3 files changed
+14 -6

No files matched your search

+2 -1
View File
@@ -46,8 +46,9 @@ func Distribute() func(c *gin.Context) {
if modelRequest.Model == "" {
modelRequest.Model = "midjourney"
}
} else if !strings.HasPrefix(c.Request.URL.Path, "/v1/audio/transcriptions") {
err = common.UnmarshalBodyReusable(c, &modelRequest)
}
err = common.UnmarshalBodyReusable(c, &modelRequest)
if err != nil {
abortWithMessage(c, http.StatusBadRequest, "无效的请求")
return