Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix(im): persist session mode configuration
jacentsao6d833abfc020
diff --git a/internal/handler/im.go b/internal/handler/im.goindex 64268fa52..50995879d 100644--- a/internal/handler/im.go+++ b/internal/handler/im.go@@ -65,6 +65,7 @@ func (h *IMHandler) CreateIMChannel(c *gin.Context) {Name string `json:"name"`Mode string `json:"mode"`OutputMode string `json:"output_mode"`+ SessionMode string `json:"session_mode"`KnowledgeBaseID string `json:"knowledge_base_id"`Credentials types.JSON `json:"credentials"`Enabled *bool `json:"enabled"`@@ -86,6 +87,7 @@ func (h *IMHandler) CreateIMChannel(c *gin.Context) {Name: req.Name,Mode: req.Mode,OutputMode: req.OutputMode,+ SessionMode: req.SessionMode,KnowledgeBaseID: req.KnowledgeBaseID,Credentials: req.Credentials,Enabled: true,@@ -207,6 +209,7 @@ func (h *IMHandler) UpdateIMChannel(c *gin.Context) {Name *string `json:"name"`Mode *string `json:"mode"`OutputMode *string `json:"output_mode"`+ SessionMode *string `json:"session_mode"`KnowledgeBaseID *string `json:"knowledge_base_id"`Credentials types.JSON `json:"credentials"`Enabled *bool `json:"enabled"`@@ -226,6 +229,9 @@ func (h *IMHandler) UpdateIMChannel(c *gin.Context) {if req.OutputMode != nil {channel.OutputMode = *req.OutputMode}+ if req.SessionMode != nil {+ channel.SessionMode = *req.SessionMode+ }if req.KnowledgeBaseID != nil {channel.KnowledgeBaseID = *req.KnowledgeBaseID}