fix: Adjust temperature validation to allow zero as a valid setting and default only for negative values.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user