fix(session): update AgentQA to conditionally disable title based on request
Modified the AgentQA function to conditionally pass the title disable flag to the executeQA method, enhancing flexibility in session handling. This change improves the behavior of the QA execution based on user requests.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user