refactor: Enhance knowledge base and agent features in documentation

This commit is contained in:
wizardchen
2025-11-26 11:27:48 +08:00
parent 09642445de
commit b5890b3169
9 changed files with 60 additions and 35 deletions
-4
View File
@@ -404,8 +404,6 @@ type GetKnowledgeBatchRequest struct {
func (h *KnowledgeHandler) GetKnowledgeBatch(c *gin.Context) {
ctx := c.Request.Context()
logger.Info(ctx, "Start batch retrieving knowledge")
// Get tenant ID from context
tenantID, ok := c.Get(types.TenantIDContextKey.String())
if !ok {
@@ -451,8 +449,6 @@ func (h *KnowledgeHandler) GetKnowledgeBatch(c *gin.Context) {
func (h *KnowledgeHandler) UpdateKnowledge(c *gin.Context) {
ctx := c.Request.Context()
logger.Info(ctx, "Start Update knowledge")
// Get knowledge ID from URL path parameter
id := secutils.SanitizeForLog(c.Param("id"))
if id == "" {