mirror of
https://gitee.com/fit2cloud-feizhiyun/1Panel.git
synced 2026-11-19 19:34:49 +08:00
refactor(ai): move model preparation to XPack and reorganize model views (#14306)
This commit is contained in:
@@ -60,9 +60,6 @@ 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