fix: Adjust temperature validation to allow zero as a valid setting and default only for negative values.

This commit is contained in:
Andy Yang
2026-03-19 18:50:32 +08:00
committed by lyingbug
parent a4d3d69843
commit 5c31a9123f
3 changed files with 4 additions and 4 deletions
@@ -118,7 +118,7 @@ func (s *sessionService) applyAgentOverridesToChatManage(
cm.SummaryConfig.ContextTemplate = customAgent.Config.ContextTemplate
logger.Infof(ctx, "Using custom agent's context_template")
}
if customAgent.Config.Temperature > 0 {
if customAgent.Config.Temperature >= 0 {
cm.SummaryConfig.Temperature = customAgent.Config.Temperature
logger.Infof(ctx, "Using custom agent's temperature: %f", customAgent.Config.Temperature)
}