Revert the deliberate break (#8299)
Run 11302 failed all ten named tests, and with them apierror's
TestWrite_SendsTheEnvelopeAndHidesAPlainErrorsText and api's
TestFlag_BadReason, which pin the same rules from the handler side.
This reverts commit 21adbc2283.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -142,7 +142,7 @@ func applyTastePatch(current TasteTuning, patch map[string]float64) (TasteTuning
|
||||
default:
|
||||
return current, nil, fmt.Errorf("%w: %q", ErrUnknownField, field)
|
||||
}
|
||||
if field != "half_life_days" && (v < 0 || v > 100) /* DELIBERATE BREAK */ {
|
||||
if field != "half_life_days" && (v < 0 || v > 1) {
|
||||
return current, nil, fmt.Errorf("%w: %s = %v (must be in [0, 1])",
|
||||
ErrOutOfRange, field, v)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user