Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix(session): update AgentQA to conditionally disable title based on request

wizardchenfc2d85822243
diff --git a/internal/handler/session/qa.go b/internal/handler/session/qa.go
index 6bcb0437e..0cac5c234 100644
--- a/internal/handler/session/qa.go
+++ b/internal/handler/session/qa.go
@@ -590,7 +590,7 @@ func (h *Handler) AgentQA(c *gin.Context) {
h.executeQA(reqCtx, qaModeAgent, true)
} else {
logger.Infof(reqCtx.ctx, "Agent mode disabled, delegating to normal mode for session: %s", reqCtx.sessionID)
- h.executeQA(reqCtx, qaModeNormal, false)
+ h.executeQA(reqCtx, qaModeNormal, !request.DisableTitle)
}
}