diff --git a/routers/repo/ai_model_convert.go b/routers/repo/ai_model_convert.go index be3718b0a..e9e4f7d8c 100644 --- a/routers/repo/ai_model_convert.go +++ b/routers/repo/ai_model_convert.go @@ -7,7 +7,6 @@ import ( "fmt" "io" "io/ioutil" - "net/http" "os" "strings" @@ -646,7 +645,8 @@ func ModelConvertDownloadModel(ctx *context.Context) { ctx.ServerError("PresignedGetURL", err) return } - http.Redirect(ctx.Resp, ctx.Req.Request, url, http.StatusMovedPermanently) + ctx.JSON(200, url) + //http.Redirect(ctx.Resp, ctx.Req.Request, url, http.StatusMovedPermanently) } else { }