feat(ai): support benchmark node options and report integration (#14145)

This commit is contained in:
ssongliu
2026-10-21 18:07:39 +08:00
committed by GitHub
parent b851c84290
commit a393224729
21 changed files with 2144 additions and 102 deletions
+16
View File
@@ -0,0 +1,16 @@
package v2
import (
"github.com/1Panel-dev/1Panel/agent/app/api/v2/helper"
"github.com/1Panel-dev/1Panel/agent/app/service"
"github.com/gin-gonic/gin"
)
func (b *BaseApi) AIBenchmarkSources(c *gin.Context) {
sources, err := service.AIBenchmarkSources(c.Query("kind"), c.Query("selected"))
if err != nil {
helper.BadRequest(c, err)
return
}
helper.SuccessWithData(c, sources)
}