Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Update av

Danield168951d34bf
diff --git a/kernel/api/av.go b/kernel/api/av.go
index a4843cde6d..09541abb73 100644
--- a/kernel/api/av.go
+++ b/kernel/api/av.go
@@ -78,7 +78,7 @@ func getAttributeViewKeys(c *gin.Context) {
ret.Data = blockAttributeViewKeys
}
-func setAttributeViewBlockAttrs(c *gin.Context) {
+func setAttributeViewBlockAttr(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
diff --git a/kernel/api/router.go b/kernel/api/router.go
index 17f6e8a09e..254da533dc 100644
--- a/kernel/api/router.go
+++ b/kernel/api/router.go
@@ -360,7 +360,7 @@ func ServeAPI(ginServer *gin.Engine) {
ginServer.Handle("POST", "/api/av/renderAttributeView", model.CheckAuth, renderAttributeView)
ginServer.Handle("POST", "/api/av/getAttributeViewKeys", model.CheckAuth, getAttributeViewKeys)
- ginServer.Handle("POST", "/api/av/setAttributeViewBlockAttrs", model.CheckAuth, setAttributeViewBlockAttrs)
+ ginServer.Handle("POST", "/api/av/setAttributeViewBlockAttr", model.CheckAuth, setAttributeViewBlockAttr)
ginServer.Handle("POST", "/api/ai/chatGPT", model.CheckAuth, model.CheckReadonly, chatGPT)
ginServer.Handle("POST", "/api/ai/chatGPTWithAction", model.CheckAuth, model.CheckReadonly, chatGPTWithAction)