mirror of
https://gitee.com/fit2cloud-feizhiyun/1Panel.git
synced 2026-11-19 19:34:49 +08:00
feat(ai): open source model marketplace and migrate historical data (#14277)
* feat(ai): open source model marketplace and migrate historical data * fix(ai): wait for canceled model downloads before retrying
This commit is contained in:
@@ -60,6 +60,9 @@ func OperationResolveMeta() gin.HandlerFunc {
|
||||
return
|
||||
}
|
||||
reqPath := strings.TrimPrefix(c.Request.URL.Path, "/api/v2")
|
||||
if strings.HasPrefix(reqPath, "/xpack/model/downloader/") {
|
||||
reqPath = strings.Replace(reqPath, "/xpack/model/downloader/", "/ai/model/downloader/", 1)
|
||||
}
|
||||
meta, ok := metaMap[reqPath]
|
||||
if !ok || len(meta.BeforeFunctions) == 0 {
|
||||
c.Next()
|
||||
|
||||
Reference in New Issue
Block a user