mirror of
https://github.com/truewhile/MeBox.git
synced 2026-09-29 11:36:36 +08:00
Update deployment docs and media library UI
This commit is contained in:
@@ -72,10 +72,6 @@ func aiRecommendHandler(svc *service.Container) gin.HandlerFunc {
|
||||
|
||||
func aiStatusHandler(svc *service.Container) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"enabled": svc.AI.Enabled(),
|
||||
"provider": svc.Cfg.AI.Provider,
|
||||
"model": svc.Cfg.AI.Model,
|
||||
})
|
||||
c.JSON(http.StatusOK, svc.AI.Status(c.Request.Context()))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user