fix: do not try to parse model when requesting /v1/models (close #1272)
This commit is contained in:
parent
9a2662af0d
commit
840ef80d94
@ -117,7 +117,7 @@ func TokenAuth() func(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
requestModel, err := getRequestModel(c)
|
||||
if err != nil {
|
||||
if err != nil && !strings.HasPrefix(c.Request.URL.Path, "/v1/models") {
|
||||
abortWithMessage(c, http.StatusBadRequest, err.Error())
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user