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.main
parent
1506c604e1
commit
fc2d858222
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue