fix(qa): wire agent thinking toggle and show reasoning in RAG timeline
Default unset agent thinking to explicit false so thinking_type models receive disabled/enabled wire params. Render reasoning inside the quick-answer pipeline timeline only when thinking events arrive, avoiding a flash of the thinking step when thinking mode is off.
This commit is contained in:
@@ -131,10 +131,14 @@ func (s *sessionService) applyAgentOverridesToChatManage(
|
||||
cm.SummaryConfig.MaxCompletionTokens = customAgent.Config.MaxCompletionTokens
|
||||
logger.Infof(ctx, "Using custom agent's max_completion_tokens: %d", customAgent.Config.MaxCompletionTokens)
|
||||
}
|
||||
// Agent-level thinking setting takes full control (no global fallback)
|
||||
// Agent-level thinking setting takes full control (no global fallback).
|
||||
// EnsureDefaults pins nil to explicit false so thinking_control wire formats
|
||||
// always receive a value.
|
||||
cm.SummaryConfig.Thinking = customAgent.Config.Thinking
|
||||
if customAgent.Config.Thinking != nil {
|
||||
logger.Infof(ctx, "Using custom agent's thinking: %v", *customAgent.Config.Thinking)
|
||||
} else {
|
||||
logger.Warnf(ctx, "Custom agent thinking is unset after EnsureDefaults; model thinking param will be omitted")
|
||||
}
|
||||
|
||||
// Override retrieval strategy settings
|
||||
|
||||
Reference in New Issue
Block a user