feat: 记录更多的错误信息

This commit is contained in:
1808837298@qq.com
2024-02-22 19:42:33 +08:00
parent 6fa1837c24
commit 81167c4322
2 changed files with 5 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ func Distribute() func(c *gin.Context) {
err = common.UnmarshalBodyReusable(c, &modelRequest)
}
if err != nil {
abortWithMessage(c, http.StatusBadRequest, "无效的请求: "+err.Error())
abortWithMessage(c, http.StatusBadRequest, "无效的请求, "+err.Error())
return
}
if strings.HasPrefix(c.Request.URL.Path, "/v1/moderations") {