fix: Adjust temperature validation to allow zero as a valid setting and default only for negative values.
This commit is contained in:
@@ -211,7 +211,7 @@ func (a *CustomAgent) EnsureDefaults() {
|
||||
if a == nil {
|
||||
return
|
||||
}
|
||||
if a.Config.Temperature == 0 {
|
||||
if a.Config.Temperature < 0 {
|
||||
a.Config.Temperature = 0.7
|
||||
}
|
||||
if a.Config.MaxIterations == 0 {
|
||||
|
||||
Reference in New Issue
Block a user