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:
ssongliu
2026-11-02 17:46:26 +08:00
committed by GitHub
parent b31e683f1b
commit f8c61993c5
33 changed files with 7074 additions and 252 deletions
+3
View File
@@ -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()